new FFZEmote(channel, id, data)
- Source:
An FFZ emote.
Parameters:
Name | Type | Description |
---|---|---|
channel |
Channel | Channel this emote belongs to. |
id |
string | ID of the emote. |
data |
data | The raw emote data. |
Extends
Members
channel :Channel
- Source:
- Inherited From:
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:
code :string
- Source:
- Overrides:
The code or name of the emote.
Type:
- string
fetcher :EmoteFetcher
- Source:
- Inherited From:
The emote fetcher.
Type:
id :string
- Source:
- Inherited From:
The ID of this emote.
Type:
- string
imageType :string
- Source:
The image type of the emote.
Type:
- string
(readonly, nullable) owner :Channel
- Source:
The channel of this emote's creator.
Not guaranteed to contain the emote, or be cached.
Type:
ownerName :string
- Source:
The name of the emote creator's channel.
Type:
- string
sizes :Array.<string>
- Source:
Available image sizes.
Type:
- Array.<string>
type :string
- Source:
- Overrides:
The type of this emote.
Either twitch
, bttv
, or ffz
.
Type:
- string
Methods
toLink(size) → {string}
- Source:
Gets the image link of the emote.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
size |
number |
0
|
The size of the image. |
Returns:
- Type
- string
toString() → {string}
- Source:
- Inherited From:
Override for toString
.
Will give the emote's name.
Returns:
- Type
- string