aboutsummaryrefslogtreecommitdiff
path: root/docs/ext/commands/extensions.rst
diff options
context:
space:
mode:
authorSebastian Law <[email protected]>2021-04-08 06:31:06 -0700
committerGitHub <[email protected]>2021-04-08 09:31:06 -0400
commit05c123f3aba623e24b8fe269b5e424ad00940245 (patch)
tree7a4aa5ae15ed1bc55da5dd11cb8eccfb9356992d /docs/ext/commands/extensions.rst
parentUse f-strings in more places that were missed. (diff)
downloaddiscord.py-05c123f3aba623e24b8fe269b5e424ad00940245.tar.xz
discord.py-05c123f3aba623e24b8fe269b5e424ad00940245.zip
Use f-strings in more places that were missed
Diffstat (limited to 'docs/ext/commands/extensions.rst')
-rw-r--r--docs/ext/commands/extensions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ext/commands/extensions.rst b/docs/ext/commands/extensions.rst
index 10e33e45..3cb6d297 100644
--- a/docs/ext/commands/extensions.rst
+++ b/docs/ext/commands/extensions.rst
@@ -22,7 +22,7 @@ An example extension looks like this:
@commands.command()
async def hello(ctx):
- await ctx.send('Hello {0.display_name}.'.format(ctx.author))
+ await ctx.send(f'Hello {ctx.author.display_name}.')
def setup(bot):
bot.add_command(hello)