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