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
A coroutine that sends a slash command get request to Discord API.
150
+
A coroutine that sends a gets all the commands permissions for that guild.
151
151
152
152
:param bot_id: User ID of the bot.
153
153
:param bot_token: Token of the bot.
154
154
:param guild_id: ID of the guild to get permissions.
155
155
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#get-application-command-permissions>.
156
156
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
A coroutine that sends a request to get a single command's permissions in guild
168
175
176
+
:param bot_id: User ID of the bot.
177
+
:param bot_token: Token of the bot.
178
+
:param guild_id: ID of the guild to update permissions on.
179
+
:param command_id: ID for the command to update permissions on.
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>
182
+
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
:return: JSON Response of the request. A list of <https://discord.com/developers/docs/interactions/slash-commands#batch-edit-application-command-permissions>.
210
238
:raises: :class:`.error.RequestFailure` - Requesting to Discord API has failed.
0 commit comments