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
Equivalent of `ApplicationCommandOptionType <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptiontype>`_ in the Discord API.
450
+
Equivalent of `ApplicationCommandOptionType <https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type>`_ in the Discord API.
451
451
"""
452
452
453
453
SUB_COMMAND=1
@@ -667,7 +667,7 @@ def __eq__(self, other):
667
667
668
668
classSlashCommandPermissionType(IntEnum):
669
669
"""
670
-
Equivalent of `ApplicationCommandPermissionType <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandpermissiontype>`_ in the Discord API.
670
+
Equivalent of `ApplicationCommandPermissionType <https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type>`_ in the Discord API.
:param guild_id: ID of the guild to get permissions.
134
-
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#get-application-command-permissions>.
134
+
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/application-commands#get-application-command-permissions>.
135
135
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
:param guild_id: ID of the guild to update permissions on.
156
156
:param command_id: ID for the command to update permissions on.
157
-
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#edit-application-command-permissions>
157
+
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions>
158
158
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
:param guild_id: ID of the guild to update permissions on.
179
179
:param command_id: ID for the command to update permissions on.
180
180
:param permissions: List of permissions for the command.
181
-
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#edit-application-command-permissions>
181
+
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/application-commands#edit-application-command-permissions>
182
182
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
:param guild_id: ID of the guild to update permissions.
207
207
:param cmd_permissions: List of dict with permissions for each commands.
208
-
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#batch-edit-application-command-permissions>.
208
+
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/application-commands#batch-edit-application-command-permissions>.
209
209
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
You must set the the relevant argument's function to a default argument, eg ``argname = None``.
247
247
248
248
.. note::
249
-
``choices`` must either be a list of `option type dicts <https://discord.com/developers/docs/interactions/slash-commands#applicationcommandoptionchoice>`_
249
+
``choices`` must either be a list of `option type dicts <https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure>`_
0 commit comments