AutoModSettingsManager
Represents the manager for the settings of the autmod.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new AutoModSettingsManager()
Creates a new instance of the automod settings manager.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
automod | AutoMod <T > | The automod instance. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/managers/AutoModSettingsManager.ts:23
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
automod | public | AutoMod <T > | The automod instance. | - |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
Methods
edit()
Edits the automod settings.
Parameters
Parameter | Type | Description |
---|---|---|
options | PutAutoModSettingsBody | The options to edit the automod settings. |
Returns
Promise
<AutoModSettings
<T
>>
The new settings of the automod.
Source
twitchfy/packages/chatbot/src/structures/managers/AutoModSettingsManager.ts:33
fetch()
Fetches the current settings of the automod from the API.
Returns
Promise
<AutoModSettings
<T
>>
The current settings of the automod.
Source
twitchfy/packages/chatbot/src/structures/managers/AutoModSettingsManager.ts:41