From 0a85fc8e3f4c12eb0216964379507f9dd4086f31 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 28 Aug 2023 22:07:26 +0100 Subject: [PATCH] Fix /me --- cogs/info.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cogs/info.py b/cogs/info.py index 2c586ef..3f21017 100644 --- a/cogs/info.py +++ b/cogs/info.py @@ -102,6 +102,11 @@ class InfoCog(commands.Cog): value="\n".join(f"{connection['type'].title()} ({connection['id']})" for connection in connections), ) + if not embed.fields: + embed.description = "No data found. You may need to [reauthenticate.](%s)" % OAUTH_REDIRECT_URI + embed.url = OAUTH_REDIRECT_URI + embed.colour = discord.Color.red() + await ctx.respond(embed=embed)