aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-03-27 20:08:26 -0400
committerRapptz <[email protected]>2017-03-27 20:08:26 -0400
commite1c32626ba2011a7d5d7dd2d8d115f4d4e104c77 (patch)
tree82b0f928374a05c09d2d51e0e9efe72d1d4aef50
parent[commands] Add is_owner check and Bot.is_owner. (diff)
downloaddiscord.py-e1c32626ba2011a7d5d7dd2d8d115f4d4e104c77.tar.xz
discord.py-e1c32626ba2011a7d5d7dd2d8d115f4d4e104c77.zip
[commands] Fix User converter not working with IDs.
-rw-r--r--discord/ext/commands/converter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index ce52caab..5c760b6e 100644
--- a/discord/ext/commands/converter.py
+++ b/discord/ext/commands/converter.py
@@ -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