diff options
| author | Rapptz <[email protected]> | 2017-05-12 21:11:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-12 21:12:28 -0400 |
| commit | cf2269fdf48429b9fd5527d9c87a20eb59140e47 (patch) | |
| tree | 120f8746506412d05677b150ca10efad7f90a05f | |
| parent | Fix dead cross-reference links in the migrating page. (diff) | |
| download | discord.py-cf2269fdf48429b9fd5527d9c87a20eb59140e47.tar.xz discord.py-cf2269fdf48429b9fd5527d9c87a20eb59140e47.zip | |
Fix some left over incorrect snippets.
| -rw-r--r-- | discord/channel.py | 2 | ||||
| -rw-r--r-- | docs/faq.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/discord/channel.py b/discord/channel.py index 49b0ab40..4391b847 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -242,7 +242,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): return m.author == client.user deleted = await channel.purge(limit=100, check=is_me) - await channel.send_message('Deleted {} message(s)'.format(len(deleted))) + await channel.send('Deleted {} message(s)'.format(len(deleted))) Returns -------- diff --git a/docs/faq.rst b/docs/faq.rst index fda5313b..d6500f13 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -287,7 +287,7 @@ This will allow you to use ``?echo a b c`` without needing the quotes. How do I get the original ``message``\? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The :class:`~ext.commands.Context` contains an attribute, :attr:`~ext.commands.Context.message` to get the original +The :class:`~ext.commands.Context` contains an attribute, :attr:`~.Context.message` to get the original message. Example: :: @@ -308,7 +308,7 @@ Example: :: @bot.group() async def git(ctx): if ctx.invoked_subcommand is None: - await bot.say('Invalid git command passed...') + await ctx.send('Invalid git command passed...') @git.command() async def push(ctx, remote: str, branch: str): |