Liking cljdoc? Tell your friends :D

discord-bot.clients.discord.interactions


bulk-overwrite-global-commandsclj

(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.
raw docstring

bulk-overwrite-guild-commandsclj

(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.
raw docstring

callback-typesclj


create-followup-messageclj

(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.
raw docstring

delete-global-commandclj

(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.
raw docstring

delete-guild-commandclj

(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.
raw docstring

delete-original-responseclj

(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.
raw docstring

edit-original-responseclj

(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.
raw docstring

list-global-commandsclj

(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.
raw docstring

list-guild-commandsclj

(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.
raw docstring

register-global-commandclj

(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.
raw docstring

register-guild-commandclj

(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.
raw docstring

respond-to-interactionclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close