[commands] Fix error in converters in a private message context.

I was referencing a member function that did not actually exist. So I
ported it over to a free function that could be used.
This commit is contained in:
Rapptz
2016-07-02 23:38:59 -04:00
parent 4d71b3fe7d
commit 1500001b04
2 changed files with 11 additions and 11 deletions

View File

@@ -158,14 +158,6 @@ class Command:
finally:
ctx.bot.dispatch('command_error', error, ctx)
def _get_from_servers(self, bot, getter, argument):
result = None
for server in bot.servers:
result = getattr(server, getter)(argument)
if result:
return result
return result
@asyncio.coroutine
def do_conversion(self, ctx, converter, argument):
if converter is bool: