diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c5ed63053..dba975bd37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,8 @@ These changes are available on the `master` branch, but have not yet been releas documentation. ([#2581](https://github.com/Pycord-Development/pycord/pull/2581)) - Fixed a possible bug where audio would play too fast at the beginning of audio files. ([#2584](https://github.com/Pycord-Development/pycord/pull/2584)) +- Fixed the `is_owner()` `user` type hint: `User` -> `User | Member`. + ([#2593](https://github.com/Pycord-Development/pycord/pull/2593)) ### Changed diff --git a/discord/bot.py b/discord/bot.py index 6ecc921f5c..f97701f8f3 100644 --- a/discord/bot.py +++ b/discord/bot.py @@ -1407,7 +1407,7 @@ def after_invoke(self, coro): self._after_invoke = coro return coro - async def is_owner(self, user: User) -> bool: + async def is_owner(self, user: User | Member) -> bool: """|coro| Checks if a :class:`~discord.User` or :class:`~discord.Member` is the owner of @@ -1422,7 +1422,7 @@ async def is_owner(self, user: User) -> bool: Parameters ---------- - user: :class:`.abc.User` + user: Union[:class:`.abc.User`, :class:`.member.Member`] The user to check for. Returns