You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: discord_slash/utils/manage_commands.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -157,8 +157,9 @@ def create_option(name: str,
157
157
:param choices: Choices of the option. Can be empty.
158
158
:return: dict
159
159
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.
162
163
"""
163
164
ifnotisinstance(option_type, int) orisinstance(option_type, bool): #Bool values are a subclass of int
0 commit comments