Functions to make component creation easier.
Read https://discord.com/developers/docs/interactions/message-components first to understand the structure of message components.
Functions to make component creation easier. Read https://discord.com/developers/docs/interactions/message-components first to understand the structure of message components.
(action-row & components)
Create an action row containing other components.
See https://discord.com/developers/docs/interactions/message-components#action-rows for more info.
Create an action row containing other components. See https://discord.com/developers/docs/interactions/message-components#action-rows for more info.
(button style custom-id & {:keys [label emoji disabled]})
Create a regular interaction button.
See https://discord.com/developers/docs/interactions/message-components#buttons for more info.
Create a regular interaction button. See https://discord.com/developers/docs/interactions/message-components#buttons for more info.
Map of button style names (keywords) to their numerical identifiers.
Map of button style names (keywords) to their numerical identifiers.
(link-button url & {:keys [label emoji disabled]})
Create a button that links to a URL.
Create a button that links to a URL.
(select-menu custom-id
options
&
{:keys [placeholder min-values max-values disabled]})
Create a select menu.
See https://discord.com/developers/docs/interactions/message-components#select-menus for more info.
Create a select menu. See https://discord.com/developers/docs/interactions/message-components#select-menus for more info.
(select-option label value & {:keys [description emoji default]})
Create an option for a select menu.
Create an option for a select menu.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close