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:
@ -338,7 +338,7 @@ Converters
|
||||
|
||||
@commands.command()
|
||||
async def test(ctx, numbers: Greedy[int], reason: str):
|
||||
await ctx.send("numbers: {}, reason: {}".format(numbers, reason))
|
||||
await ctx.send(f"numbers: {numbers}, reason: {reason}")
|
||||
|
||||
An invocation of ``[p]test 1 2 3 4 5 6 hello`` would pass ``numbers`` with
|
||||
``[1, 2, 3, 4, 5, 6]`` and ``reason`` with ``hello``\.
|
||||
|
Reference in New Issue
Block a user