ChatRoomSettings
Represents the settings of a chatroom.
Extends
Base<T>
Type parameters
| Type parameter |
|---|
T extends EventSubConnection |
Constructors
new ChatRoomSettings()
1new ChatRoomSettings<T>(2 chatbot: ChatBot<T>,3 chatroom: ChatRoom<T>,4data: ChatSettings): ChatRoomSettings<T>Creates a new instance of the chatroom settings.
Parameters
| Parameter | Type | Description |
|---|---|---|
chatbot | ChatBot<T> | The current instance of the chatbot. |
chatroom | ChatRoom<T> | The chatroom of the settings. |
data | ChatSettings | The data representing the chat settings. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:28
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
chatbot | readonly | ChatBot<T> | The current instance of the chatbot. | Base.chatbot |
chatroom | readonly | ChatRoom<T> | The chatroom of the settings. | - |
Accessors
chatDelay
1get chatDelay(): null | number | falseThe 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
1get chatroomId(): stringThe Id of the chatroom.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:46
emotesOnly
1get emotesOnly(): booleanWhether the chatroom is in emote only mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:53
followersOnly
1get followersOnly(): number | falseThe 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
1get slowMode(): null | number | falseThe 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
1get subscriberMode(): booleanWhether the chatroom is in subscriber mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:67
uniqueMessagesMode
1get uniqueMessagesMode(): booleanWhether the chatroom is in unique messages mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:74
Methods
edit()
1edit(options: PatchChatSettingsBody): Promise<ChatRoomSettings<T>>Edits the chat settings of the chatroom.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | PatchChatSettingsBody | The options to edit the chat settings. |
Returns
Promise<ChatRoomSettings<T>>
The updated chatroom settings.
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:39