[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:
1 parent
4d71b3fe7d
commit
1500001b04
2 files changed
+11
-11
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user