mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-24 01:14:13 +00:00
Fix not finding user via ping
This commit is contained in:
parent
e1f8bf8b6e
commit
d355cd9d8f
1 changed files with 4 additions and 3 deletions
|
@ -279,9 +279,10 @@ class WtCommands:
|
|||
except ValueError:
|
||||
pass
|
||||
if inputstr.startswith('<@!') and inputstr.endswith('>'):
|
||||
idsearch = inputstr[3:][:-1]
|
||||
if inputstr.startswith('<@') and inputstr.endswith('>'):
|
||||
idsearch = inputstr[2:][:-1]
|
||||
idsearch = int(inputstr[3:][:-1])
|
||||
elif inputstr.startswith('<@') and inputstr.endswith('>'):
|
||||
idsearch = int(inputstr[2:][:-1])
|
||||
|
||||
if idsearch is not None:
|
||||
return guild.get_member(idsearch)
|
||||
|
||||
|
|
Loading…
Reference in a new issue