Delete Chat
Play 0x1F, server → client.
play · 0x1F · clientbound (server → client)
Tells the client to remove a previously received signed chat message, identified by the message id or its signature. The server sends it when a message is deleted, for example by moderation. The client replaces the message with a ‘This chat message has been deleted’ notice.
Sent by the server, read by the client. Listen for it with client.on("DeleteChat", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
id |
VarInt | |
signature |
Struct |
Send it
await client.sendPacket("DeleteChat", {
id: /* VarInt */,
signature: /* Struct */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/DeleteChat.ts