diff options
| author | N-i-c-k-007 <[email protected]> | 2021-04-08 14:03:42 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-08 04:33:42 -0400 |
| commit | c3e0b6e12348546aa1eba643c0d2af6608c1618a (patch) | |
| tree | 2059d828245e238fb94cf0978f8be7464a134f28 /examples/basic_bot.py | |
| parent | Add discord.types.Message.interaction attribute (diff) | |
| download | discord.py-c3e0b6e12348546aa1eba643c0d2af6608c1618a.tar.xz discord.py-c3e0b6e12348546aa1eba643c0d2af6608c1618a.zip | |
Update joined command in basic_bot to use f-strings
Diffstat (limited to 'examples/basic_bot.py')
| -rw-r--r-- | examples/basic_bot.py | 2 |
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): |