Discord

Delete a Discord channel message

Changed on

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}

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/discord/channels/{channelId}/messages/{messageId}
  • Auth: HTTP bearer

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

Changes

    • warning

      added the new account enum value to the / response property for the response 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

      added the optional property to the response with the status