Skip to content

kient / ChatMessage

Class: ChatMessage ​

src/structures/chat-message.ts:15

Extends ​

Properties ​

PropertyModifierTypeDescriptionInherited fromDefined in
_kientreadonlyKient-EventBase._kientsrc/structures/base.ts:4
broadcasterpublicChatUserThe message chatroom's owner's details-src/structures/chat-message.ts:24
contentpublicstringThe message content-src/structures/chat-message.ts:34
emotespublicunknownEmotes-src/structures/chat-message.ts:39
kickEventpublicobjectThe information relating the received eventEventBase.kickEventsrc/structures/base-event.ts:17
kickEvent.messageIdpublicstringThe event's message id-src/structures/base-event.ts:21
kickEvent.subscriptionIdpublicstringThe subscription ID associated with the event-src/structures/base-event.ts:26
kickEvent.timestamppublicDateThe event's timestamp-src/structures/base-event.ts:31
messageIdpublicstringThe chat messages's ID-src/structures/chat-message.ts:19
senderpublicChatUserThe user who sent the chat message-src/structures/chat-message.ts:29

Methods ​

toJSON() ​

ts
toJSON(): ExcludeFunctionsAndPrivate<ChatMessage>

src/structures/chat-message.ts:53

Returns ​

ExcludeFunctionsAndPrivate<ChatMessage>


unsubscribe() ​

ts
unsubscribe(): void

src/structures/base-event.ts:48

The unsubscribes the client from this subscription type using the associated subscription ID in the event

Returns ​

void

Inherited from ​

EventBase.unsubscribe