mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
[Core] Check for coowners in the db
This commit is contained in:
parent
36b19de9da
commit
cc1d7b2b59
@ -34,7 +34,7 @@ class Red(commands.Bot):
|
||||
|
||||
async def is_owner(self, user, allow_coowners=True):
|
||||
if allow_coowners:
|
||||
if user.id in self.settings.coowners:
|
||||
if user.id in self.db.get_global("coowners", []):
|
||||
return True
|
||||
return await super().is_owner(user)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user