Remove self-bot support (#2008)

This commit is contained in:
Michael H
2018-08-24 08:51:03 -04:00
committed by Toby Harradine
parent bc39a6741c
commit 6ebfdef025
6 changed files with 11 additions and 73 deletions

View File

@@ -235,10 +235,8 @@ class CoreLogic:
str
Invite URL.
"""
if self.bot.user.bot:
app_info = await self.bot.application_info()
return discord.utils.oauth_url(app_info.id)
return "Not a bot account!"
app_info = await self.bot.application_info()
return discord.utils.oauth_url(app_info.id)
@i18n.cog_i18n(_)
@@ -432,10 +430,7 @@ class Core(CoreLogic):
@checks.is_owner()
async def invite(self, ctx):
"""Show's Red's invite url"""
if self.bot.user.bot:
await ctx.author.send(await self._invite_url())
else:
await ctx.send("I'm not a bot account. I have no invite URL.")
await ctx.author.send(await self._invite_url())
@commands.command()
@commands.guild_only()