diff options
Diffstat (limited to 'docs/ext/commands/api.rst')
| -rw-r--r-- | docs/ext/commands/api.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ext/commands/api.rst b/docs/ext/commands/api.rst index c7b6659f..6fa552d6 100644 --- a/docs/ext/commands/api.rst +++ b/docs/ext/commands/api.rst @@ -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``\. |