Update joined command in basic_bot to use f-strings

This commit is contained in:
N-i-c-k-007 2021-04-08 14:03:42 +05:30 committed by GitHub
parent e405bd5f1f
commit c3e0b6e123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ async def repeat(ctx, times: int, content='repeating...'):
@bot.command()
async def joined(ctx, member: discord.Member):
"""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()
async def cool(ctx):