Auto-delete invalid tokens

This commit is contained in:
Nexus 2023-08-28 22:09:22 +01:00
parent 0a85fc8e3f
commit e6365c0f08
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -103,6 +103,7 @@ class InfoCog(commands.Cog):
)
if not embed.fields:
await user.delete()
embed.description = "No data found. You may need to [reauthenticate.](%s)" % OAUTH_REDIRECT_URI
embed.url = OAUTH_REDIRECT_URI
embed.colour = discord.Color.red()