aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-08-20 02:28:27 +0100
committerGravatar Joe Banks <[email protected]>2021-08-20 02:28:27 +0100
commitdfa30ca45b1d29db57e73d60eb9f31a8aa2e25d6 (patch)
tree42bac2b90c83ff6096b7ac375e29bbb53fb7da60
parentAdd CronJob triggering (#7) (diff)
Update is_owner check
-rw-r--r--arthur/bot.py2
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]