Ensure the bot.owner attribute has been set
This commit is contained in:
parent
e9354febc4
commit
84c096df4b
|
@ -63,6 +63,8 @@ async def db_check():
|
||||||
|
|
||||||
|
|
||||||
def is_owner(ctx):
|
def is_owner(ctx):
|
||||||
|
if not hasattr(ctx.bot, "owner"):
|
||||||
|
return False
|
||||||
return ctx.bot.owner.id == ctx.message.author.id
|
return ctx.bot.owner.id == ctx.message.author.id
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue