Reference
Remy Reference/agent/discordSendMessage
?

discordSendMessage

Send a message to Discord, either edit the loading message or send a new channel message.
mindstudio.discordSendMessage({ mode, text }) → Result

Sends a message to Discord, either editing the loading placeholder or posting a fresh channel message. Returns the message id that discordEditMessage uses to update it later.

Parameters
mode
string
Required"edit" replaces the loading message, "send" sends a new channel message
editsend
text
string
RequiredMessage text to send
applicationId
string
Discord application ID from the bot registration (required for "reply" mode)
interactionToken
string
Interaction token provided by the Discord trigger — expires after 15 minutes (required for "reply" mode)
botToken
string
Discord bot token for authentication (required for "send" mode)
channelId
string
Discord channel ID to send the message to (required for "send" mode)
attachmentUrl
string
URL of a file to download and attach to the message
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.discordSendMessage({
  mode: /* ... */,
  text: /* ... */
});