Update bot_management.py

This commit is contained in:
davfsa 2018-06-20 20:01:45 +02:00 committed by GitHub
parent 239261eeaf
commit c6efae9635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: