Slash Command#
Discord → SCSlash Commands
Documentation coming soon!
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
SlashCommand
SPEC
SlashCommandSpec defines the desired state of SlashCommand. The command is invoked in Discord as `/<metadata.name>`. To register the same logical command on multiple servers, create one SlashCommand CR per server (each pointing at the corresponding Bot).
-
Discord role IDs allowed to invoke the command.
-
Discord user IDs allowed to invoke the command.
-
Bot this command will be registered through. The bot determines the target Discord server.
-
User-facing description shown in the Discord client.
-
Send the command response as ephemeral (only visible to the invoker) by default.
-
Command options (arguments) presented to the user.
-
CommandOption is a single argument to a slash command.
-
Enable Discord autocomplete on this option.
-
Option description shown to the user.
-
Maximum value (integer/number options).
format: int64 -
Maximum length (string options).
format: int64 -
Minimum value (integer/number options).
format: int64 -
Minimum length (string options).
format: int64 -
Option name (lowercased, no spaces).
-
Whether the option is required.
-
Discord option type.
enum: "string", "integer", "number", +6 more
-
-
-
Provider that implements the command.
STATUS
SlashCommandStatus defines the observed state of SlashCommand.
-
CommandID returned by Discord at registration time, used for updates and deletes.
-
Error is set when the last registration attempt failed; empty otherwise.
-
LastRegistered is the time the command was last successfully registered or updated.
format: date-time -
Registered is true when the command is currently registered with Discord through .spec.botRef.