aboutsummaryrefslogtreecommitdiff
path: root/examples/basic_bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic_bot.py')
-rw-r--r--examples/basic_bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/basic_bot.py b/examples/basic_bot.py
index 1d8928bf..b43062d6 100644
--- a/examples/basic_bot.py
+++ b/examples/basic_bot.py
@@ -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):