aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 09:20:09 -0500
committerRapptz <[email protected]>2017-01-03 09:52:12 -0500
commit496f5d04729d4e85f902999481b8feb2d482f3da (patch)
tree12e67429a4f661121080df22596d6176c198347a
parentMake User and Member messageable. (diff)
downloaddiscord.py-496f5d04729d4e85f902999481b8feb2d482f3da.tar.xz
discord.py-496f5d04729d4e85f902999481b8feb2d482f3da.zip
[commands] Fix help command from not working with recent changes.
-rw-r--r--discord/ext/commands/bot.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index faa2c109..724372f7 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -95,7 +95,7 @@ def _default_help_command(ctx, *commands : str):
else:
command = bot.commands.get(name)
if command is None:
- yield from bot.send_message(destination, bot.command_not_found.format(name))
+ yield from destination.send(bot.command_not_found.format(name))
return
pages = bot.formatter.format_help_for(ctx, command)
@@ -103,7 +103,7 @@ def _default_help_command(ctx, *commands : str):
name = _mention_pattern.sub(repl, commands[0])
command = bot.commands.get(name)
if command is None:
- yield from bot.send_message(destination, bot.command_not_found.format(name))
+ yield from destination.send(bot.command_not_found.format(name))
return
for key in commands[1:]:
@@ -111,10 +111,10 @@ def _default_help_command(ctx, *commands : str):
key = _mention_pattern.sub(repl, key)
command = command.commands.get(key)
if command is None:
- yield from bot.send_message(destination, bot.command_not_found.format(key))
+ yield from destination.send(bot.command_not_found.format(key))
return
except AttributeError:
- yield from bot.send_message(destination, bot.command_has_no_subcommands.format(command, key))
+ yield from destination.send(bot.command_has_no_subcommands.format(command, key))
return
pages = bot.formatter.format_help_for(ctx, command)
@@ -126,7 +126,7 @@ def _default_help_command(ctx, *commands : str):
destination = ctx.message.author
for page in pages:
- yield from bot.send_message(destination, page)
+ yield from destination.send(page)
class Bot(GroupMixin, discord.Client):