MessageReplyThread
Represents the message which started a thread of replies.
Extends
BaseMessage
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new MessageReplyThread()
Creates a new instance of the message reply thread.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
data | Omit <BaseMessageData , "content" > | The data of the message. |
chatroom | ChatRoom <T > | The chatroom where the message was sent. |
Returns
Overrides
Source
twitchfy/packages/chatbot/src/structures/MessageReplyThread.ts:23
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
author | readonly | BaseUser <T > | The author of the message. | BaseMessage .author |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | BaseMessage .chatbot |
chatroom | readonly | ChatRoom <T > | The chatroom where the message was sent. | - |
content | readonly | null | string | The content of the message. | BaseMessage .content |
id | readonly | string | The id of the message. | BaseMessage .id |
Accessors
chatroomId
The Id of the chatroom where the message was sent.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseMessage.ts:64
self
Whether the message was sent by the chatbot.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/BaseMessage.ts:71
Methods
delete()
Deletes the message from the chatroom.
Returns
Promise
<void
>
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseMessage.ts:48
reply()
Replies to the message.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | The message to reply with. |
Returns
Promise
<BaseMessage
<T
>>
The message that was sent as a reply.