From 45ee4755a645c6247e6ce8746b12451d5506cfe5 Mon Sep 17 00:00:00 2001 From: palmtree5 <3577255+palmtree5@users.noreply.github.com> Date: Sat, 24 Mar 2018 13:24:06 -0800 Subject: [PATCH] [V3 Core] Fix url sent when doing [p]invite (#1461) --- redbot/core/core_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index be5a32481..a62089e76 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -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.")