mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3 Core] Fix url sent when doing [p]invite (#1461)
This commit is contained in:
parent
59281afe90
commit
45ee4755a6
@ -235,7 +235,8 @@ class Core:
|
||||
async def invite(self, ctx):
|
||||
"""Show's Red's invite url"""
|
||||
if self.bot.user.bot:
|
||||
await ctx.author.send(discord.utils.oauth_url(self.bot.user.id))
|
||||
app_info = await self.bot.application_info()
|
||||
await ctx.author.send(discord.utils.oauth_url(app_info.id))
|
||||
else:
|
||||
await ctx.send("I'm not a bot account. I have no invite URL.")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user