Skip to content

AutoModSettingsManager

Represents the manager for the settings of the autmod.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new AutoModSettingsManager()

1
new AutoModSettingsManager<T>(chatbot: ChatBot<T>, automod: AutoMod<T>): AutoModSettingsManager<T>

Creates a new instance of the automod settings manager.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
automodAutoMod<T>The automod instance.

Returns

AutoModSettingsManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/AutoModSettingsManager.ts:23

Properties

PropertyModifierTypeDescriptionInherited from
automodpublicAutoMod<T>The automod instance.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot

Methods

edit()

1
edit(options: PutAutoModSettingsBody): Promise<AutoModSettings<T>>

Edits the automod settings.

Parameters

ParameterTypeDescription
optionsPutAutoModSettingsBodyThe 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()

1
fetch(): Promise<AutoModSettings<T>>

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