Liking cljdoc? Tell your friends :D

slash.command.structure

Functions to make command definition easier.

Read https://discord.com/developers/docs/interactions/slash-commands first to understand the structure of slash commands.

Functions to make command definition easier.

Read https://discord.com/developers/docs/interactions/slash-commands first to understand the structure of slash commands.
raw docstring

choiceclj

(choice name value)

Create an option choice for a choice set.

Create an option choice for a choice set.
sourceraw docstring

commandclj

(command name description & {:keys [default-permission guild-id options]})
Create a top level command.

See https://discord.com/developers/docs/interactions/slash-commands#application-command-object-application-command-structure
sourceraw docstring

optionclj

(option name description type & {:keys [required choices]})

Create a regular option.

Create a regular option.
sourceraw docstring

option-typesclj

Map of option type names (keywords) to their identifiers.

Map of option type names (keywords) to their identifiers.
sourceraw docstring

sub-commandclj

(sub-command name description & {:keys [options]})

Create a sub command option.

Create a sub command option.
sourceraw docstring

sub-command-groupclj

(sub-command-group name description & sub-commands)

Create a sub command group option.

Create a sub command group option.
sourceraw docstring

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

× close