Delete a Discord channel message
Changed onDeletes 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.
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/discord/channels/{channelId}/messages/{messageId}
- Auth: HTTP bearer
Path parameters
Discord channel snowflake ID
Discord message snowflake ID
Query parameters
SocialAccount _id of the Discord account bound to this channel's guild
Response
Message deleted.
Changes
- warning
added the new
accountenum value to the/response property for the response status
- warning
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info