Browse Source

[commands] Bot.is_owner should be marked as coroutine

pull/2277/head
ed588 6 years ago
committed by Rapptz
parent
commit
c6133ef881
  1. 4
      discord/ext/commands/bot.py

4
discord/ext/commands/bot.py

@ -285,7 +285,9 @@ class BotBase(GroupMixin):
return await discord.utils.async_all(f(ctx) for f in data)
async def is_owner(self, user):
"""Checks if a :class:`~discord.User` or :class:`~discord.Member` is the owner of
"""|coro|
Checks if a :class:`~discord.User` or :class:`~discord.Member` is the owner of
this bot.
If an :attr:`owner_id` is not set, it is fetched automatically

Loading…
Cancel
Save