Skip to content

Cheermote

Represents a Twitch cheermote.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new Cheermote()

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

Creates a new instance of the cheermote.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataCheermoteThe data of the cheermote returned from the API.

Returns

Cheermote<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/Cheermote.ts:43

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
isCharitablereadonlybooleanWhether the cheermote is charitable.-
prefixreadonlystringThe prefix of the cheermote.-
tiersreadonlyCheermoteTier<T>[]The tiers of the cheermote.-
typereadonlyCheermoteTypeThe type of the cheermote.-

Accessors

lastUpdated

1
get lastUpdated(): Date

Returns the last updated date of the cheermote in a JavaScript Date object.

Returns

Date

Source

twitchfy/packages/chatbot/src/structures/Cheermote.ts:55

Methods

getURL()

1
getURL(options: CheermoteURLOptions): null | string

Get the URL of the image of cheermote.

Parameters

ParameterTypeDescription
optionsCheermoteURLOptionsThe options to get the URL of the cheermote.

Returns

null | string

The URL of the image of the cheermote.

Source

twitchfy/packages/chatbot/src/structures/Cheermote.ts:64