Skip to content

Commit 7f5464a

Browse files
use note
1 parent 328e5c7 commit 7f5464a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

discord_slash/utils/manage_commands.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ def create_option(name: str,
157157
:param choices: Choices of the option. Can be empty.
158158
:return: dict
159159
160-
``choices`` must either be a list of `option type dicts <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptionchoice>`_
161-
or a list of single string values.
160+
.. note::
161+
``choices`` must either be a list of `option type dicts <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptionchoice>`_
162+
or a list of single string values.
162163
"""
163164
if not isinstance(option_type, int) or isinstance(option_type, bool): #Bool values are a subclass of int
164165
original_type = option_type

0 commit comments

Comments
 (0)