v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Discord

Delete a Discord channel message

Deletes a message from a channel, for moderation and cleanup. This cannot be undone.

Deleting a message the bot did not send requires the bot to hold the Manage Messages permission, which the Zernio bot requests at install time. Deleting the bot's own message needs no extra permission.

Ownership is verified by resolving the channel's guild and confirming the caller owns a Discord account bound to it.

delete/v1/discord/channels/{channelId}/messages/{messageId}

Path parameters

channelIdstring required

Discord channel snowflake ID

messageIdstring required

Discord message snowflake ID

Query parameters

accountIdstring required

SocialAccount _id of the Discord account bound to this channel's guild

Response

Message deleted.

successboolean