mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
[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:
|
||||
user_id = int(match.group(1))
|
||||
result = self.bot.get_user(user_id)
|
||||
result = self.ctx.bot.get_user(user_id)
|
||||
else:
|
||||
arg = self.argument
|
||||
# check for discriminator if it exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user