Send Approval Message
AI-generatedSummary
Send an interactive approval message to a Discord channel with optional embed and configurable button actions.
Inputs
- channelId (required) — Discord channel ID to send the message to
- content — Message text content
- useEmbed — Include an embed in the message
- embedTitle — Title of the embed (shown only when useEmbed is true)
- embedDescription — Description of the embed (shown only when useEmbed is true)
- embedColor — Hex color for embed left border (shown only when useEmbed is true)
- ticketId — Unique ticket identifier passed with the interaction
- approveState — State value returned when Approve button is clicked
- editState — State value returned when Edit button is clicked
- rejectState — State value returned when Reject button is clicked
Output shape
array of items, each containing a json property with the Discord API response
If continueOnFail is disabled, errors are thrown; otherwise error responses appear as
json.errorobjects.
Examples
Example 1: Post a ticket approval message with embed and default button states
channelId=123456789, content='New ticket requires review', useEmbed=true, embedTitle='Ticket #123', embedDescription='Please review', approveState='approved', editState='editing', rejectState='rejected'
Example 2: Send a custom button set for a different workflow
channelId=987654321, content='Choose an action', useEmbed=false, buttons=[{label:'Accept', customId:'accept:123:approved', style:3}]