Skip to content

BaseCheermote

Represents a base cheermote returned by the EventSub.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new BaseCheermote()

1
new BaseCheermote<T>(chatbot: ChatBot<T>, data: Cheermote & object): BaseCheermote<T>

Creates a new instance of the base cheermote.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataCheermote & objectThe data of the cheermote returned by the EventSub.

Returns

BaseCheermote<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/BaseCheermote.ts:37

Properties

PropertyModifierTypeDescriptionInherited from
bitsreadonlynumberThe bits that were cheered with the cheermote.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
prefixreadonlystringThe prefix of the cheermote.-
tierreadonlynumberThe tier level of the cheermote.-

Accessors

content

1
get content(): string

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()

1
fetch(): Promise<null | Cheermote<T>>

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