mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Update joined command in basic_bot to use f-strings
This commit is contained in:
parent
e405bd5f1f
commit
c3e0b6e123
@ -52,7 +52,7 @@ async def repeat(ctx, times: int, content='repeating...'):
|
|||||||
@bot.command()
|
@bot.command()
|
||||||
async def joined(ctx, member: discord.Member):
|
async def joined(ctx, member: discord.Member):
|
||||||
"""Says when a member joined."""
|
"""Says when a member joined."""
|
||||||
await ctx.send('{0.name} joined in {0.joined_at}'.format(member))
|
await ctx.send(f'{member.name} joined in {member.joined_at}')
|
||||||
|
|
||||||
@bot.group()
|
@bot.group()
|
||||||
async def cool(ctx):
|
async def cool(ctx):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user