mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
Fixed is_owner_check
This commit is contained in:
parent
bbe78f6160
commit
37bbcb00d1
@ -20,7 +20,7 @@ except:
|
|||||||
settings = {"OWNER" : False, "ADMIN_ROLE" : False, "MOD_ROLE" : False}
|
settings = {"OWNER" : False, "ADMIN_ROLE" : False, "MOD_ROLE" : False}
|
||||||
|
|
||||||
def is_owner_check(ctx):
|
def is_owner_check(ctx):
|
||||||
return ctx.message.author.id == owner
|
return ctx.message.author.id == settings["OWNER"]
|
||||||
|
|
||||||
def is_owner():
|
def is_owner():
|
||||||
return commands.check(is_owner_check)
|
return commands.check(is_owner_check)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user