Skip to content

ChatRoomSettingsManager

Represents the manager for the settings of a chatroom.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatRoomSettingsManager()

1
new ChatRoomSettingsManager<T>(chatbot: ChatBot<T>, chatroom: ChatRoom<T>): ChatRoomSettingsManager<T>

Creates a new instance of the chatroom settings manager.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
chatroomChatRoom<T>The settings’ chatroom.

Returns

ChatRoomSettingsManager<T>

Overrides

Base<T>.constructor

Source

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

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
chatroomreadonlyChatRoom<T>The settings’ chatroom.-

Methods

edit()

1
edit(options: PatchChatSettingsBody): Promise<ChatRoomSettings<T>>

Edits the chatroom settings with the API.

Parameters

ParameterTypeDescription
optionsPatchChatSettingsBodyThe options to edit the chatroom settings.

Returns

Promise<ChatRoomSettings<T>>

The new settings of the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatRoomSettingsManager.ts:33


fetch()

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

Fetches the current settings of the chatroom from the API.

Returns

Promise<ChatRoomSettings<T>>

The current settings of the chatroom.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatRoomSettingsManager.ts:41