mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Remove self-bot support (#2008)
This commit is contained in:
committed by
Toby Harradine
parent
bc39a6741c
commit
6ebfdef025
@@ -94,10 +94,7 @@ def init_events(bot, cli_flags):
|
||||
data = await bot.application_info()
|
||||
invite_url = discord.utils.oauth_url(data.id)
|
||||
except:
|
||||
if bot.user.bot:
|
||||
invite_url = "Could not fetch invite url"
|
||||
else:
|
||||
invite_url = None
|
||||
invite_url = "Could not fetch invite url"
|
||||
|
||||
prefixes = cli_flags.prefix or (await bot.db.prefix())
|
||||
lang = await bot.db.locale()
|
||||
|
||||
Reference in New Issue
Block a user