Twitch.ChatMessageDeleted
A moderator deletes a message.
- Platform: twitch
- Shape:
messageDeleted - Source event:
Twitch.ChatMessageDeleted
Widget.on("Twitch.ChatMessageDeleted", (event) => { // event.user, event.platform…});Fields
Section titled “Fields”user(string): Display name; «Anonymous» for anonymous gifts.userId(string): User id on its platform.userLogin(string): Login, lowercase.messageId(string): Deleted message id.
It also carries platform (the source platform) and raw (the original payload).
Example
Section titled “Example”The example payload that reaches the Studio simulator:
{ "moderator": { "id": "100000002", "login": "lunagamer", "name": "LunaGamer", "type": "twitch" }, "broadcaster": { "id": "100000000", "login": "canaldeprueba", "name": "CanalDePrueba", "type": "twitch" }, "isInSharedChat": false, "isSharedChatHost": false, "isFromSharedChatGuest": false, "createdAt": "2026-09-26T05:50:09.5561872Z", "isTest": false, "targetUser": { "id": "100000008", "login": "spambot3000", "name": "SpamBot3000", "type": "twitch" }, "messageId": "00000000-0000-4000-8000-000000000007"}