Fix regex

This commit is contained in:
Zeva Rose 2021-07-03 17:45:36 -06:00
parent c9d452539c
commit e0b9640dc1

View file

@ -182,7 +182,7 @@ class AdminCog(commands.Cog):
bans = await ctx.guild.bans()
# Try to get ban information out of Discord
if re.match("^[0-9]{1,}$"): # User ID
if re.match("^[0-9]{1,}$", user): # User ID
user = int(user)
discord_ban_info = find(lambda x: x.id == user, bans)
else: # User name