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.
(choice name value)
Create an option choice for a choice set.
Create an option choice for a choice set.
(command name description & {:keys [default-permission guild-id options]})
Create a top level command.
Create a top level command. See https://discord.com/developers/docs/interactions/slash-commands#application-command-object-application-command-structure
(option name description type & {:keys [required choices]})
Create a regular option.
Create a regular option.
Map of option type names (keywords) to their numerical identifiers.
Map of option type names (keywords) to their numerical identifiers.
(sub-command name description & {:keys [options]})
Create a sub command option.
Create a sub command option.
(sub-command-group name description & sub-commands)
Create a sub command group option.
Create a sub command group option.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close