[commands] Fix User converter not working with IDs.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user