mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[General] Fix usage in choose help (#5015)
Co-authored-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
parent
b8b8a38fbd
commit
631adc282f
@ -62,18 +62,22 @@ choose
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
[p]choose [choices...]
|
||||
[p]choose <first> <second> [others...]
|
||||
|
||||
**Description**
|
||||
|
||||
Choose between multiple options.
|
||||
Options are separated by spaces.
|
||||
|
||||
.. note:: To denote options which include whitespace, you should use
|
||||
double quotes.
|
||||
.. note:: There must be at least 2 options to pick from.
|
||||
.. note:: To denote options which include whitespace, you should enclose the option in double quotes.
|
||||
|
||||
**Arguments**
|
||||
|
||||
* ``[choices...]``: The arguments for Red to randomly choose from.
|
||||
* ``<first>``: The first mandatory option.
|
||||
* ``<second>``: The second mandatory option.
|
||||
* ``[others...]``: Any remaining optional options.
|
||||
|
||||
|
||||
.. _general-command-flip:
|
||||
|
||||
|
||||
@ -80,12 +80,14 @@ class General(commands.Cog):
|
||||
""" Nothing to delete """
|
||||
return
|
||||
|
||||
@commands.command(usage="<choice> <choices...>")
|
||||
@commands.command(usage="<first> <second> [others...]")
|
||||
async def choose(self, ctx, *choices):
|
||||
"""Choose between multiple options.
|
||||
|
||||
To denote options which include whitespace, you should use
|
||||
double quotes.
|
||||
There must be at least 2 options to pick from.
|
||||
Options are separated by spaces.
|
||||
|
||||
To denote options which include whitespace, you should enclose the options in double quotes.
|
||||
"""
|
||||
choices = [escape(c, mass_mentions=True) for c in choices if c]
|
||||
if len(choices) < 2:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user