-
Notifications
You must be signed in to change notification settings - Fork 16
discordInteractionManager
Javier Colombera edited this page Dec 24, 2023
·
4 revisions
This node allows you to edit deferred interactions, respond autocomplete commands, edit ephemeral responses and so on. The result depends on what type of interaction you are modifying.
These are all the inputs this node takes. Below are specifc examples for use cases which also shows what variables are required for that action.
Input | Type | Options | Description |
---|---|---|---|
msg.action |
String | edit, respondAutocomplete | The action you wish to perform. When not set edit is default. |
msg.interactionid |
Number | Interaction identificator number. | |
msg.payload |
String | The string you wish to send or the new content of a message when editing. | |
msg.embeds |
Object or Array | An embed object or an array of embed objects. | |
msg.attachments |
String, Object or Array | A location to an attachment. Can be online by URL, an object with a buffer payload or a file in the local filesystem. | |
msg.autoCompleteChoices |
Array | Optional. In autocomplete interactions, the filtered or non-filtered options to respond. | |
msg.components |
Array | An array of component objects. |
Commands and select menus are replied by default. DiscordInteraction node defers the reply and this node can edit it. Component interactions that have been replied in discordInteraction node,they can be edited it also.
For component interactions that have been updated in the Discord Interaction node, they can be edited by this node.
- Home
- Installation and setup
- Nodes
-
Examples
- Creating a thread
- Setting a bot status
- Reacting to a message
- Attach an image from disk
- Attach an image from buffer on an embed
- Attach an array of attachments
- Publish a new message on announcement channel
- Publish an existing message on announcement channel
- Set Role with discordPermission
- Remove Role with discordPermission
- Interaction Examples