Skip to content

CheermoteTier

Represents a Twitch cheermote tier.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new CheermoteTier()

1
new CheermoteTier<T>(
2
chatbot: ChatBot<T>,
3
cheermote: Cheermote<T>,
4
data: CheermoteTier): CheermoteTier<T>

Creates a new instance of the cheermote tier.

Parameters

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

Returns

CheermoteTier<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/CheermoteTier.ts:49

Properties

PropertyModifierTypeDescriptionInherited from
canCheerreadonlybooleanWhether the user can cheer with this tier.-
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot
cheermotereadonlyCheermote<T>The cheermote of the tier.-
colorreadonlystringThe color of the tier.-
minBitsreadonlynumberThe minimum bits necessary to cheer with this tier.-
showInBitsCardreadonlybooleanWhether the tier should be shown in the bits card.-

Accessors

id

1
get id(): number

The Id of the cheermote tier.

Returns

number

Source

twitchfy/packages/chatbot/src/structures/CheermoteTier.ts:62

Methods

getURL()

1
getURL(options?: Omit<CheermoteURLOptions, "tier">): string

Get the URL of the image of the cheermote tier.

Parameters

ParameterTypeDescription
options?Omit<CheermoteURLOptions, "tier">The options to get the URL of the cheermote tier.

Returns

string

The URL of the image of the cheermote tier.

Source

twitchfy/packages/chatbot/src/structures/CheermoteTier.ts:72