ChatRoomSettings
Represents the settings of a chatroom.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChatRoomSettings()
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
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
The Id of the chatroom.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:46
emotesOnly
Whether the chatroom is in emote only mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:53
followersOnly
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
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
Whether the chatroom is in subscriber mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:67
uniqueMessagesMode
Whether the chatroom is in unique messages mode.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/ChatRoomSettings.ts:74
Methods
edit()
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