(bulk-overwrite-global-commands app-id commands)Replaces all global application commands with the provided list. app-id is a string snowflake. commands is a vector of command data maps. Returns a vector of the new command maps.
Replaces all global application commands with the provided list. app-id is a string snowflake. commands is a vector of command data maps. Returns a vector of the new command maps.
(bulk-overwrite-guild-commands app-id guild-id commands)Replaces all application commands for a specific guild. app-id and guild-id are string snowflakes. commands is a vector of command data maps. Returns a vector of the new command maps.
Replaces all application commands for a specific guild. app-id and guild-id are string snowflakes. commands is a vector of command data maps. Returns a vector of the new command maps.
(create-followup-message app-id interaction-token message-data)Sends a followup message to an interaction. app-id is a string snowflake. interaction-token is a string. message-data is a map with :content and/or :embeds. Returns the created message map.
Sends a followup message to an interaction. app-id is a string snowflake. interaction-token is a string. message-data is a map with :content and/or :embeds. Returns the created message map.
(delete-global-command app-id command-id)Deletes a global application command. app-id and command-id are string snowflakes. Returns :ok on success.
Deletes a global application command. app-id and command-id are string snowflakes. Returns :ok on success.
(delete-guild-command app-id guild-id command-id)Deletes a guild-specific application command. app-id, guild-id, and command-id are string snowflakes. Returns :ok on success.
Deletes a guild-specific application command. app-id, guild-id, and command-id are string snowflakes. Returns :ok on success.
(delete-original-response app-id interaction-token)Deletes the original interaction response. app-id is a string snowflake. interaction-token is a string. Returns :ok on success.
Deletes the original interaction response. app-id is a string snowflake. interaction-token is a string. Returns :ok on success.
(edit-original-response app-id interaction-token message-data)Edits the original interaction response. app-id is a string snowflake. interaction-token is a string. message-data is a map of fields to update. Returns the updated message map.
Edits the original interaction response. app-id is a string snowflake. interaction-token is a string. message-data is a map of fields to update. Returns the updated message map.
(list-global-commands app-id)Lists all global application commands. app-id is a string snowflake. Returns a vector of command maps.
Lists all global application commands. app-id is a string snowflake. Returns a vector of command maps.
(list-guild-commands app-id guild-id)Lists all application commands for a specific guild. app-id and guild-id are string snowflakes. Returns a vector of command maps.
Lists all application commands for a specific guild. app-id and guild-id are string snowflakes. Returns a vector of command maps.
(register-global-command app-id command-data)Registers an application command globally (available in all guilds). app-id is a string snowflake. command-data is a map with :name, :description, and optionally :options (vector of option maps). Returns the created command map.
Registers an application command globally (available in all guilds). app-id is a string snowflake. command-data is a map with :name, :description, and optionally :options (vector of option maps). Returns the created command map.
(register-guild-command app-id guild-id command-data)Registers an application command for a specific guild. app-id and guild-id are string snowflakes. command-data is a map with :name, :description, and optionally :options. Returns the created command map.
Registers an application command for a specific guild. app-id and guild-id are string snowflakes. command-data is a map with :name, :description, and optionally :options. Returns the created command map.
(respond-to-interaction interaction-id interaction-token callback-type & [data])Sends a response to an interaction. interaction-id is a string snowflake. interaction-token is a string. callback-type is either a keyword (:channel-message-with-source, :deferred-channel-message-with-source, :update-message, :deferred-update-message, :autocomplete-result, :modal, :pong) or a raw integer. data is an optional map (e.g. {:content "hi"}). Returns the API response map.
Sends a response to an interaction. interaction-id is a string snowflake.
interaction-token is a string. callback-type is either a keyword
(:channel-message-with-source, :deferred-channel-message-with-source,
:update-message, :deferred-update-message, :autocomplete-result, :modal,
:pong) or a raw integer. data is an optional map (e.g. {:content "hi"}).
Returns the API response map.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |