ChatBotWarnsManager
The warns manager of the chatbot.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChatBotWarnsManager()
Creates a new instance of the warns 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/ChatBotWarnsManager.ts:15
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
Methods
create()
Creates warn for an user in a specific chatroom.
Parameters
Parameter | Type | Description |
---|---|---|
chatroomId | string | The id of the chatroom where the user will be warned. |
userId | string | The id of the user to warn. |
reason | string | - |
Returns
Promise
<Warning
<T
>>
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotWarnsManager.ts:25