[commands] Fix User converter not working with IDs.
This commit is contained in:
parent
5c5e7ae1d6
commit
e1c32626ba
@ -113,7 +113,7 @@ class UserConverter(IDConverter):
|
|||||||
|
|
||||||
if match is not None:
|
if match is not None:
|
||||||
user_id = int(match.group(1))
|
user_id = int(match.group(1))
|
||||||
result = self.bot.get_user(user_id)
|
result = self.ctx.bot.get_user(user_id)
|
||||||
else:
|
else:
|
||||||
arg = self.argument
|
arg = self.argument
|
||||||
# check for discriminator if it exists
|
# check for discriminator if it exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user