Skip to content

ChatRoomSettings

Represents the settings of a chatroom.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatRoomSettings()

1
new ChatRoomSettings<T>(
2
chatbot: ChatBot<T>,
3
chatroom: ChatRoom<T>,
4
data: ChatSettings): ChatRoomSettings<T>

Creates a new instance of the chatroom settings.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
chatroomChatRoom<T>The chatroom of the settings.
dataChatSettingsThe data representing the chat settings.

Returns

ChatRoomSettings<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:28

Properties

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

Accessors

chatDelay

1
get chatDelay(): null | number | false

The duration of the chat delay in seconds. If chat delay is disabled, this will return false.

Returns

null | number | false

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:88


chatroomId

1
get chatroomId(): string

The Id of the chatroom.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:46


emotesOnly

1
get emotesOnly(): boolean

Whether the chatroom is in emote only mode.

Returns

boolean

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:53


followersOnly

1
get followersOnly(): number | false

The number of seconds a follower has to be following to be able to write. If the follower mode is disabled, this will return false.

Returns

number | false

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:60


slowMode

1
get slowMode(): null | number | false

The slow mode duration of the chatroom in seconds. If slow mode is disabled, this will return false.

Returns

null | number | false

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:81


subscriberMode

1
get subscriberMode(): boolean

Whether the chatroom is in subscriber mode.

Returns

boolean

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:67


uniqueMessagesMode

1
get uniqueMessagesMode(): boolean

Whether the chatroom is in unique messages mode.

Returns

boolean

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:74

Methods

edit()

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

Edits the chat settings of the chatroom.

Parameters

ParameterTypeDescription
optionsPatchChatSettingsBodyThe options to edit the chat settings.

Returns

Promise<ChatRoomSettings<T>>

The updated chatroom settings.

Source

twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:39