fluxer/fluxer_docs/schemas/events/MESSAGE_DELETE.json
2026-02-17 12:22:36 +00:00

35 lines
871 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "MESSAGE_DELETE",
"description": "Sent when a message is deleted.",
"scope": "channel",
"scopeNote": "Guild channels dispatch to guild scope; DMs dispatch to presence scope",
"dispatchedBy": [
"DELETE /channels/:channel_id/messages/:message_id",
"internal:admin_message_delete",
"internal:bulk_delete_user_messages"
],
"payload": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "ID of the deleted message"
},
"channel_id": {
"type": "string",
"description": "Channel ID"
},
"content": {
"type": "string",
"description": "Content of the deleted message (for audit purposes)"
},
"author_id": {
"type": "string",
"description": "ID of the message author"
}
},
"required": ["id", "channel_id"]
}
}