BaseUserWithoutUsername
The base class for a user without an username.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new BaseUserWithoutUsername()
Creates a new instance of the base user without an username.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
data | Omit <BaseUserData , "login" > | The base data of the user. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:28
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
dislayName | readonly | string | The display name of the user. | - |
id | readonly | string | The id of the user. | - |
Methods
fetch()
Fetches the current user from the API.
Returns
Promise
<User
<T
>>
The fetched user from the API.
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:38
inStream()
Returns whether the user is currently in stream or not.
Returns
Promise
<boolean
>
A boolean indicating whether the user is currently streaming.
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:64
stream()
Fetches the current stream of the user from the API.
Returns
Promise
<null
| Stream
<T
>>
The current stream or null if the stream is offline.
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:53
toString()
Returns the mention of the user.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:45
whisper()
Sends a whisper to the user.
Parameters
Parameter | Type | Description |
---|---|---|
message | string | The message to send. |
Returns
Promise
<void
>
Source
twitchfy/packages/chatbot/src/structures/BaseUserWithoutUsername.ts:74