mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix some left over incorrect snippets.
This commit is contained in:
parent
a93145d1f0
commit
cf2269fdf4
@ -242,7 +242,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
return m.author == client.user
|
return m.author == client.user
|
||||||
|
|
||||||
deleted = await channel.purge(limit=100, check=is_me)
|
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
|
Returns
|
||||||
--------
|
--------
|
||||||
|
@ -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``\?
|
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.
|
message.
|
||||||
|
|
||||||
Example: ::
|
Example: ::
|
||||||
@ -308,7 +308,7 @@ Example: ::
|
|||||||
@bot.group()
|
@bot.group()
|
||||||
async def git(ctx):
|
async def git(ctx):
|
||||||
if ctx.invoked_subcommand is None:
|
if ctx.invoked_subcommand is None:
|
||||||
await bot.say('Invalid git command passed...')
|
await ctx.send('Invalid git command passed...')
|
||||||
|
|
||||||
@git.command()
|
@git.command()
|
||||||
async def push(ctx, remote: str, branch: str):
|
async def push(ctx, remote: str, branch: str):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user