WireMessage
The message envelope. Retracted messages come back with retracted: true
and content: null (a tombstone). Ephemeral messages are not persisted and
carry seq: null (they are not returned by history).
- contentrequired
The message payload, opaque to the platform. Any JSON value, including
nullfor retracted messages. - ephemeralType: booleanrequired
Whether the message is ephemeral (not persisted, no
seq). - idType: stringrequired
Platform-assigned message id. Unique within the channel.
- kindType: stringrequired
Content class (
textin v1). - retractedType: booleanrequired
Whether the message was retracted after publish.
- senderType: object · WireSenderrequired
- anonType: booleanrequired
Whether the sender is anonymous.
- idType: stringrequired
The sender's user id (or anonymous id).
- usernameType: string
Populated on broadcast channels only (they have no roster to join against).
- seqType: integer | nullrequired
Per-channel sequence number, or
nullfor ephemeral messages. - timestampType: integerrequired
Epoch milliseconds.
- typeType: stringrequired
Userland discriminator.
- mentionsType: array object[] · Mention[]
- userType: string
Id requiredThe mentioned user's id, or the platform tokens
@everyone/@channel(membership channels, capability-gated, rate-limited).
- toType: string
Present when the message was delivered to a single recipient (
to:-send).