Emote

Emote

new Emote(channel, id, data)

Description:
  • Base class for emotes. This constructor is not to be used.

Source:
Parameters:
Name Type Description
channel Channel

Channel this emote belongs to.

id string

ID of the emote.

data data

The raw emote data.

Throws:

When trying to use the base Emote class directly.

Type
Error

Members

fetcher :EmoteFetcher

Description:
Source:

The EmoteFetcher being used.

Type:

channel :Channel

Description:
  • The Channel this emote belongs to. Only accurate and constant on Twitch emotes. For other types of emotes, use the ownerName property.

Source:

The Channel this emote belongs to. Only accurate and constant on Twitch emotes. For other types of emotes, use the ownerName property.

Type:

id :string

Description:
  • The ID of this emote.

Source:

The ID of this emote.

Type:
  • string

type :'twitch'|'bttv'|'ffz'|'7tv'|null

Description:
  • The type/platform of this emote.

Source:

The type/platform of this emote.

Type:
  • 'twitch' | 'bttv' | 'ffz' | '7tv' | null

code :string

Description:
  • The code or name of the emote.

Source:

The code or name of the emote.

Type:
  • string

Methods

toObject() → {object}

Description:
  • Override for toObject. Will result in an Object representation of an Emote.

Source:
Returns:
  • Object representation of the Emote.
Type
object