?
discordEditMessage
Edit a previously sent Discord channel message. Use with the message ID returned by Send Discord Message.
mindstudio.discordEditMessage({ botToken, channelId, messageId, text }) → Result
Edits a Discord channel message the app sent earlier, keyed by the message id returned when it was sent. Use it to update a status message in place rather than posting a new one.
Parameters
botToken
string
RequiredDiscord bot token for authentication
channelId
string
RequiredDiscord channel ID containing the message
messageId
string
RequiredID of the message to edit (returned by Send Discord Message)
text
string
RequiredNew message text to replace the existing content
attachmentUrl
string
URL of a file to download and attach to the message (replaces any previous attachments)
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.discordEditMessage({ botToken: /* ... */, channelId: /* ... */, messageId: /* ... */, text: /* ... */ });