Fix some left over incorrect snippets.

This commit is contained in:
Rapptz 2017-05-12 21:11:22 -04:00
parent a93145d1f0
commit cf2269fdf4
2 changed files with 3 additions and 3 deletions

View File

@ -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
--------

View File

@ -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):