ChatBotMessageManager
The message manager of the chatbot.
Extends
Base<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new ChatBotMessageManager()
1new ChatBotMessageManager<T>(chatbot: ChatBot<T>): ChatBotMessageManager<T>Creates a new instance of the message manager.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatbot | ChatBot<T> | The current instance of the chatbot. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotMessageManager.ts:15
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
chatbot | readonly | ChatBot<T> | The current instance of the chatbot. | Base.chatbot |
Methods
delete()
1delete(chatroomId: string, id: string): Promise<void>Deletes a specific message from a chatroom.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatroomId | string | The id of the chatroom where the message will be deleted. |
id | string | The id of the message to delete. |
Returns
Promise<void>
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotMessageManager.ts:25
send()
1send(2 chatroomId: string,3 message: string,4options?: MessageOptions): Promise<BaseMessage<T>>Parameters
| Parameter | Type | Description |
|---|---|---|
chatroomId | string | The id of the chatroom where the message will be sent. |
message | string | The message to send. |
options? | MessageOptions | The 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