mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 18:32:32 -05:00
[Core] Implemented co-owners support (#953)
This commit is contained in:
@@ -10,7 +10,8 @@ from __main__ import settings
|
||||
#
|
||||
|
||||
def is_owner_check(ctx):
|
||||
return ctx.message.author.id == settings.owner
|
||||
_id = ctx.message.author.id
|
||||
return _id == settings.owner or _id in ctx.bot.settings.co_owners
|
||||
|
||||
def is_owner():
|
||||
return commands.check(is_owner_check)
|
||||
|
||||
Reference in New Issue
Block a user