Skip to main content

Slash commands

Actions in the category "Slash commands".

Reply to interaction​

Sends a direct reply to the interaction that started this flow.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction to reply to.
ContentMessage contentYesThe message content to send as a reply.
EphemeralYes/NoNoWhether the reply should be visible only to the user. Default: No.

Outputs

NameTypeDetails
MessageMessageThe resulting reply message.

Defer interaction reply​

Acknowledges an interaction so you have up to 15 minutes to send a real reply.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction to defer.
EphemeralYes/NoNoWhether the eventual reply should be visible only to the user. Default: No.

Edit interaction reply​

Edits the original reply that was sent for an interaction.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction whose reply to edit.
New contentMessage contentYesThe new message content.

Outputs

NameTypeDetails
MessageMessageThe edited message.

Delete interaction reply​

Deletes the original reply that was sent for an interaction.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction whose reply to delete.

Follow up to interaction​

Sends an additional message in response to an interaction.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction to follow up on.
ContentMessage contentYesThe message content to send as a follow-up.
EphemeralYes/NoNoWhether the follow-up should be visible only to the user. Default: No.

Outputs

NameTypeDetails
MessageMessageThe resulting follow-up message.

Send autocomplete response​

Sends suggestion choices in response to an autocomplete interaction.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe autocomplete interaction.
ChoicesList of Command option choiceYesUp to 25 suggestion choices to display. Maximum items: 25.

Fetch interaction reply​

Fetches the original reply message that was sent for an interaction.

Inputs

NameTypeRequiredDetails
InteractionInteractionYesThe interaction whose reply to fetch.

Outputs

NameTypeDetails
MessageMessageThe original reply message.

Fetch application command permissions​

Fetches application-command permission overwrites for a server, optionally filtered to one command.

Inputs

NameTypeRequiredDetails
CommandApplication commandNoOptional command to fetch permissions for. If omitted, returns permissions for all commands.

Outputs

NameTypeDetails
PermissionsList of Server application command permissionsPermission overwrites grouped per command.

Fetch application command by ID​

Fetches a slash command or context menu by its ID. Pass a server to fetch a server-scoped command, leave empty for global.

Inputs

NameTypeRequiredDetails
Command IDDiscord IDYesID of the application command.

Outputs

NameTypeDetails
CommandApplication commandThe fetched command, or empty. May be empty.
Need more help?
Can't find what you're looking for? Our team is happy to help.