ChatBotBanManager
The ban manager of the chatbot.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChatBotBanManager()
Creates a new instance of the ban 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/ChatBotBanManager.ts:16
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
Methods
add()
Ban a specific user.
Parameters
Parameter | Type | Description |
---|---|---|
chatroomId | string | The id of the chatroom where the user will be banned. |
options | BanOptions | The options required for banning an user. See BanOptions. |
Returns
Promise
<Ban
<T
>>
A class representation of the ban. See Ban.
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotBanManager.ts:26
delete()
Deletes the ban of a specific user.
Parameters
Parameter | Type | Description |
---|---|---|
chatroomId | string | The id of the chatroom where the user will be unbanned. |
userId | string | The id of the user to unban. |
Returns
Promise
<void
>
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotBanManager.ts:36