App Logo
discord.com

Post a Discord message

Posts a text message in a Discord channel, addressed by channel URL. Requires being logged in to Discord. Returns `sent` plus the created message's messageId, channelId, timestamp and content as Discord stored it. This is a write: the message appears in the channel and is visible to everyone who can see it. Discord's own message limits are checked before anything is sent, so a message that is empty or whitespace-only, or longer than 2000 characters, is refused straight away with a clear reason.

Input

message required

Text of the message to post. Discord refuses empty messages and anything over 2000 characters client-side, so both are rejected up front.

channelUrl required

Full channel URL, e.g. https://discord.com/channels/<guildId>/<channelId>

Output

sent required
content optional

Content as stored by Discord.

channelId optional
messageId optional

ID of the created message (from Discord's API response).

timestamp optional

Start building not clicking