BaseCheermote
Represents a base cheermote returned by the EventSub.
Extends
Base
<T
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new BaseCheermote()
Creates a new instance of the base cheermote.
Parameters
Parameter | Type | Description |
---|---|---|
chatbot | ChatBot <T > | The current instance of the chatbot. |
data | Cheermote & object | The data of the cheermote returned by the EventSub. |
Returns
Overrides
Base<T>.constructor
Source
twitchfy/packages/chatbot/src/structures/BaseCheermote.ts:37
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
bits | readonly | number | The bits that were cheered with the cheermote. | - |
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Base.chatbot |
prefix | readonly | string | The prefix of the cheermote. | - |
tier | readonly | number | The tier level of the cheermote. | - |
Accessors
content
The content of the cheermote. This is the prefix followed by the bits cheered.
Returns
string
Source
twitchfy/packages/chatbot/src/structures/BaseCheermote.ts:48
Methods
fetch()
Fetches the cheermote from the API returning the information of it.
Returns
Promise
<null
| Cheermote
<T
>>
The cheermote if it exists. If not it will return null
(basically this is 99.99% impossible).
Source
twitchfy/packages/chatbot/src/structures/BaseCheermote.ts:56