From c6efae963591d6d584c793631c4e1b979824a985 Mon Sep 17 00:00:00 2001 From: davfsa Date: Wed, 20 Jun 2018 20:01:45 +0200 Subject: [PATCH] Update bot_management.py --- src/cogs/bot_management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cogs/bot_management.py b/src/cogs/bot_management.py index 14287ee..0803324 100644 --- a/src/cogs/bot_management.py +++ b/src/cogs/bot_management.py @@ -20,7 +20,8 @@ class BotManager: pass @commands.command() - async def invite(self, ctx, bot: discord.User=None, prefix=None): + async def invite(self, ctx, bot=None, prefix=None): + bot = ctx.bot.get_user_info(bot) if not bot: raise Warning('You must include the id of the bot you are trying to invite... Be exact.') if not bot.bot: