mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix the Context.message example to actually use ctx.message
This commit is contained in:
parent
ce3ede1551
commit
df6bdb3007
@ -276,9 +276,8 @@ message.
|
||||
Example: ::
|
||||
|
||||
@bot.command()
|
||||
async def joined_at(ctx, member: discord.Member = None):
|
||||
member = member or ctx.author
|
||||
await ctx.send('{0} joined at {0.joined_at}'.format(member))
|
||||
async def length(ctx):
|
||||
await ctx.send('Your message is {} characters long.'.format(len(ctx.message.content)))
|
||||
|
||||
How do I make a subcommand?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
Loading…
x
Reference in New Issue
Block a user