From 82978b1822a12093d69a31d19da28d1da72bbcae Mon Sep 17 00:00:00 2001 From: davfsa Date: Sat, 16 Jun 2018 09:50:39 +0200 Subject: [PATCH] Added a bot-invite "command" (still-testing) --- src/cogs/bot_management.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cogs/bot_management.py b/src/cogs/bot_management.py index d6ffc43..068ee85 100644 --- a/src/cogs/bot_management.py +++ b/src/cogs/bot_management.py @@ -19,7 +19,7 @@ class BotManager: else: raise Warning('Prefix not provided and can\'t be found in bot name.') - if owner != None and ctx.author.guild_permissions.manage_roles: + if owner != None and ctx.author.guild_permissions.manage_guild: author_id = owner.id else: author_id = ctx.author.id @@ -81,7 +81,7 @@ class BotManager: em.colour = self.bot.error_color em.title = 'Bot Not Found' em.description = 'That bot is not claimed' - elif existing['owner'] != ctx.author.id and ctx.author.guild_permissions.manage_roles: + elif existing['owner'] != ctx.author.id and ctx.author.guild_permissions.manage_guild: em.colour = self.bot.error_color em.title = 'Not Claimed By You' em.description = 'That bot is claimed by someone else.\n' \ @@ -123,4 +123,4 @@ class BotManager: def setup(bot): - bot.add_cog(BotManager(bot)) + bot.add_cog(BotManager(bot)) \ No newline at end of file