Skip to content

ChatBotMessageManager

The message manager of the chatbot.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatBotMessageManager()

1
new ChatBotMessageManager<T>(chatbot: ChatBot<T>): ChatBotMessageManager<T>

Creates a new instance of the message manager.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.

Returns

ChatBotMessageManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotMessageManager.ts:15

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot

Methods

delete()

1
delete(chatroomId: string, id: string): Promise<void>

Deletes a specific message from a chatroom.

Parameters

ParameterTypeDescription
chatroomIdstringThe id of the chatroom where the message will be deleted.
idstringThe id of the message to delete.

Returns

Promise<void>

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotMessageManager.ts:25


send()

1
send(
2
chatroomId: string,
3
message: string,
4
options?: MessageOptions): Promise<BaseMessage<T>>

Parameters

ParameterTypeDescription
chatroomIdstringThe id of the chatroom where the message will be sent.
messagestringThe message to send.
options?MessageOptionsThe options to send the message. See MessageOptions.

Returns

Promise<BaseMessage<T>>

A class representation of the message. See BaseMessage.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotMessageManager.ts:36