Skip to content

ChatBotUserManager

The user manager of the chatbot.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChatBotUserManager()

1
new ChatBotUserManager<T>(chatbot: ChatBot<T>): ChatBotUserManager<T>

Creates a new instance of the user manager.

Parameters

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

Returns

ChatBotUserManager<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotUserManager.ts:15

Properties

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

Methods

fetch()

1
fetch(userIdentificator: string): Promise<User<T>>

Fetches a specific user.

Parameters

ParameterTypeDescription
userIdentificatorstringThe id or login of the user to fetch.

Returns

Promise<User<T>>

A class representation of the user. See User.

Source

twitchfy/packages/chatbot/src/structures/managers/ChatBotUserManager.ts:24