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:
The emote fetcher.
- Source:
The emote fetcher.
Type:
channel :Channel
- Description:
The channel this emote belongs to.
Only accurate and constant on Twitch emotes.
For other types of emotes, use theownerorownerNameproperty.
- Source:
The channel this emote belongs to.
Only accurate and constant on Twitch emotes.
For other types of emotes, use the owner or ownerName property.
Type:
id :string
- Description:
The ID of this emote.
- Source:
The ID of this emote.
Type:
- string
type :string
- Description:
The type of this emote.
Eithertwitch,bttv,ffz, or '7tv'.
- Source:
The type of this emote.
Either twitch, bttv, ffz, or '7tv'.
Type:
- string
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:
- Type
- object