Skip to content

MessageReplyParent

Represents a message in a chatroom that was replied by another message.

Extends

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new MessageReplyParent()

1
new MessageReplyParent<T>(
2
chatbot: ChatBot<T>,
3
data: BaseMessageData,
4
chatroom: ChatRoom<T>): MessageReplyParent<T>

Creates a new instance of the message reply parent.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataBaseMessageDataThe data of the message.
chatroomChatRoom<T>The chatroom where the message was sent.

Returns

MessageReplyParent<T>

Overrides

BaseMessage.constructor

Source

twitchfy/packages/chatbot/src/structures/MessageReplyParent.ts:23

Properties

PropertyModifierTypeDescriptionInherited from
authorreadonlyBaseUser<T>The author of the message.BaseMessage.author
chatbotreadonlyChatBot<T>The current instance of the chatbot.BaseMessage.chatbot
chatroomreadonlyChatRoom<T>The chatroom where the message was sent.-
contentreadonlynull | stringThe content of the message.BaseMessage.content
idreadonlystringThe id of the message.BaseMessage.id

Accessors

chatroomId

1
get chatroomId(): string

The Id of the chatroom where the message was sent.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/BaseMessage.ts:64


self

1
get self(): boolean

Whether the message was sent by the chatbot.

Returns

boolean

Source

twitchfy/packages/chatbot/src/structures/BaseMessage.ts:71

Methods

delete()

1
delete(): Promise<void>

Deletes the message from the chatroom.

Returns

Promise<void>

Inherited from

BaseMessage.delete

Source

twitchfy/packages/chatbot/src/structures/BaseMessage.ts:48


reply()

1
reply(message: string): Promise<BaseMessage<T>>

Replies to the message.

Parameters

ParameterTypeDescription
messagestringThe message to reply with.

Returns

Promise<BaseMessage<T>>

The message that was sent as a reply.

Inherited from

BaseMessage.reply

Source

twitchfy/packages/chatbot/src/structures/BaseMessage.ts:57