diff options
author | 2021-08-20 02:28:27 +0100 | |
---|---|---|
committer | 2021-08-20 02:28:27 +0100 | |
commit | dfa30ca45b1d29db57e73d60eb9f31a8aa2e25d6 (patch) | |
tree | 42bac2b90c83ff6096b7ac375e29bbb53fb7da60 /arthur/bot.py | |
parent | Add CronJob triggering (#7) (diff) |
Update is_owner check
Diffstat (limited to 'arthur/bot.py')
-rw-r--r-- | arthur/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/bot.py b/arthur/bot.py index 5ba93a5..9b6d56e 100644 --- a/arthur/bot.py +++ b/arthur/bot.py @@ -76,7 +76,7 @@ class KingArthur(Bot): async def is_owner(self, user: Union[User, Member]) -> bool: """Check if the invoker is a bot owner.""" - if not user.guild_id: + if not user.guild: return False return CONFIG.devops_role in [r.id for r in user.roles] |