Liking cljdoc? Tell your friends :D

slash.component.structure

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

action-rowclj

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

buttonclj

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

button-stylesclj

Map of button style names (keywords) to their numerical identifiers.

Map of button style names (keywords) to their numerical identifiers.
sourceraw docstring

(link-button url & {:keys [label emoji disabled]})

Create a button that links to a URL.

Create a button that links to a URL.
sourceraw docstring

select-menuclj

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

select-optionclj

(select-option label value & {:keys [description emoji default]})

Create an option for a select menu.

Create an option for a select menu.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close