Fix regex
This commit is contained in:
parent
c9d452539c
commit
e0b9640dc1
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class AdminCog(commands.Cog):
|
||||||
bans = await ctx.guild.bans()
|
bans = await ctx.guild.bans()
|
||||||
|
|
||||||
# Try to get ban information out of Discord
|
# 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)
|
user = int(user)
|
||||||
discord_ban_info = find(lambda x: x.id == user, bans)
|
discord_ban_info = find(lambda x: x.id == user, bans)
|
||||||
else: # User name
|
else: # User name
|
||||||
|
|
Loading…
Add table
Reference in a new issue