Skip to content

TimeoutManager

The timeout manager of a chatroom.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new TimeoutManager()

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

Creates a new instance of the timeout manager.

Parameters

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

Returns

TimeoutManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/TimeoutManager.ts:22

Properties

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

Methods

add()

1
add(options: TimeoutOptions): Promise<void>

Timeout a specific user within the chatroom.

Parameters

ParameterTypeDescription
optionsTimeoutOptionsThe options required for send an user into a timeout. See TimeoutOptions.

Returns

Promise<void>

Source

twitchfy/packages/chatbot/src/structures/managers/TimeoutManager.ts:32


delete()

1
delete(userId: string): Promise<void>

Deletes the timeout of a specific user within the chatroom.

Parameters

ParameterTypeDescription
userIdstringThe id of the user to remove from the timeout.

Returns

Promise<void>

Source

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