Skip to content

ChannelEmote

Represents a Twitch channel emote.

Extends

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new ChannelEmote()

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

Parameters

ParameterType
chatbotChatBot<T>
dataChannelEmote & object

Returns

ChannelEmote<T>

Overrides

Emote.constructor

Source

twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:21

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Emote.chatbot
emoteSetIdreadonlystringThe Id of the emote set.-
idreadonlystringThe id of the emote.Emote.id
namereadonlystringThe name of the emote.Emote.name
typereadonlyEmoteTypeThe type of the emote.-

Accessors

animated

1
get animated(): boolean

Whether the emote is animated.

Returns

boolean

Source

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


hasDarkTheme

1
get hasDarkTheme(): boolean

Checks whether the emote is dark theme.

Returns

boolean

Source

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


hasLightTheme

1
get hasLightTheme(): boolean

Checks whether the emote is light theme.

Returns

boolean

Source

twitchfy/packages/chatbot/src/structures/Emote.ts:30


ownerId

1
get ownerId(): null | string

The Id of the owner of the emote.

Returns

null | string

Source

twitchfy/packages/chatbot/src/structures/BaseEmote.ts:41


setId

1
get setId(): null | string

The Id of the emote set.

Returns

null | string

Source

twitchfy/packages/chatbot/src/structures/BaseEmote.ts:48


static

1
get static(): boolean

Whether the emote is static.

Returns

boolean

Source

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


tier

1
get tier(): null | number

Returns the subscription tier necessary to use the emote. If the emote is not a subscription emote, it will return null.

Returns

null | number

Source

twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:38

Methods

fetch()

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

Fetches the emote from the API.

Returns

Promise<null | ChannelEmote<T>>

The fetched emote. Returns null if the emote was not found.

Inherited from

Emote.fetch

Source

twitchfy/packages/chatbot/src/structures/BaseEmote.ts:86


getURL()

1
getURL(options?: EmoteURLOptions): string

Gets the URL of the emote.

Parameters

ParameterTypeDescription
options?EmoteURLOptionsThe options to get the URL of the emote.

Returns

string

Returns the URL of the emote.

Inherited from

Emote.getURL

Source

twitchfy/packages/chatbot/src/structures/Emote.ts:46


isChannel()

1
isChannel(): this is ChannelEmote<T>

Overrides isChannel method from BaseEmote to assert this as ChannelEmote and not BaseEmote.

Returns

this is ChannelEmote<T>

Whether the emote is a channel emote.

Overrides

Emote.isChannel

Source

twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:31


isGlobal()

1
isGlobal(): this is BaseEmote<T, "global">

Check if the emote is a global Twitch emote.

Returns

this is BaseEmote<T, "global">

A boolean indicating whether the emote is a global Twitch emote.

Inherited from

Emote.isGlobal

Source

twitchfy/packages/chatbot/src/structures/BaseEmote.ts:70