From dfa30ca45b1d29db57e73d60eb9f31a8aa2e25d6 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Fri, 20 Aug 2021 02:28:27 +0100 Subject: Update is_owner check --- arthur/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/bot.py') 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] -- cgit v1.2.3