Use f-strings in more places that were missed

This commit is contained in:
Sebastian Law
2021-04-08 06:31:06 -07:00
committed by GitHub
parent 99fc950510
commit 05c123f3ab
7 changed files with 19 additions and 18 deletions

View File

@ -388,7 +388,7 @@ Example: ::
@bot.command()
async def length(ctx):
await ctx.send('Your message is {} characters long.'.format(len(ctx.message.content)))
await ctx.send(f'Your message is {len(ctx.message.content)} characters long.')
How do I make a subcommand?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -405,6 +405,6 @@ Example: ::
@git.command()
async def push(ctx, remote: str, branch: str):
await ctx.send('Pushing to {} {}'.format(remote, branch))
await ctx.send(f'Pushing to {remote} {branch}')
This could then be used as ``?git push origin master``.