mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 00:25:14 +00:00
Use f-strings in more places that were missed
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user