Update bot_management.py
This commit is contained in:
parent
a90d7264bf
commit
62ca50b390
@ -19,7 +19,7 @@ class BotManager:
|
|||||||
else:
|
else:
|
||||||
raise Warning('Prefix not provided and can\'t be found in bot name.')
|
raise Warning('Prefix not provided and can\'t be found in bot name.')
|
||||||
|
|
||||||
if owner != None and ctx.author.guild_permissions.manage_guild:
|
if owner != None and ctx.author.guild_permissions.manage_roles:
|
||||||
author_id = owner.id
|
author_id = owner.id
|
||||||
else:
|
else:
|
||||||
author_id = ctx.author.id
|
author_id = ctx.author.id
|
||||||
@ -81,7 +81,7 @@ class BotManager:
|
|||||||
em.colour = self.bot.error_color
|
em.colour = self.bot.error_color
|
||||||
em.title = 'Bot Not Found'
|
em.title = 'Bot Not Found'
|
||||||
em.description = 'That bot is not claimed'
|
em.description = 'That bot is not claimed'
|
||||||
elif existing['owner'] != ctx.author.id and ctx.author.guild_permissions.manage_guild:
|
elif existing['owner'] != ctx.author.id and ctx.author.guild_permissions.manage_roles:
|
||||||
em.colour = self.bot.error_color
|
em.colour = self.bot.error_color
|
||||||
em.title = 'Not Claimed By You'
|
em.title = 'Not Claimed By You'
|
||||||
em.description = 'That bot is claimed by someone else.\n' \
|
em.description = 'That bot is claimed by someone else.\n' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user