ChatBotMessageManager
The message manager of the chatbot.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChatBotMessageManager()
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()
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()
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