new BTTVEmote(channel, id, data)
- Source:
A BTTV 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:
- Inherited From:
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:
(nullable) ownerName :string
- Source:
The name of the emote creator's channel.
Will be null for global emotes.
Type:
- 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, 0, 1, or 2. |
Returns:
- Type
- string
toString() → {string}
- Source:
- Inherited From:
Override for toString
.
Will give the emote's name.
Returns:
- Type
- string