ChatBotUserManager
The user manager of the chatbot.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChatBotUserManager()
1new ChatBotUserManager<T>(chatbot: ChatBot<T>): ChatBotUserManager<T>
Creates a new instance of the user manager.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/managers/ChatBotUserManager.ts:15
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
Methods
fetch()
1fetch(userIdentificator: string): Promise<User<T>>
Fetches a specific user.
Parameters
Parameter | Type | Description |
---|---|---|
userIdentificator | string | The 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