new SevenTVEmote(channel, id, data)
- Description:
A 7TV emote.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
channel |
Channel |
|
id |
string | ID of the emote. |
data |
data | The raw emote data. |
Extends
Members
code :string
- Description:
The code or name of the emote.
- Source:
- Overrides:
The code or name of the emote.
Type:
- string
ownerName :string|null
- Description:
The name of the emote owner. Might be null for global emotes.
- Source:
The name of the emote owner. Might be null for global emotes.
Type:
- string | null
sizes :Array.<string>
- Description:
Available image sizes.
- Source:
Available image sizes.
Type:
- Array.<string>
imageType :string
- Description:
The image type of the emote.
- Source:
The image type of the emote.
Type:
- string
animated :boolean
- Description:
If the emote is animated.
- Source:
If the emote is animated.
Type:
- boolean
zeroWidth :boolean
- Description:
If emote can be zero-width (overlaying).
- Source:
If emote can be zero-width (overlaying).
Type:
- boolean
nsfw :boolean
- Description:
If emote is NSFW (or Twitch disallowed, just in case). Do note that this flag isn't always applied to what looks NSFW.
- Source:
If emote is NSFW (or Twitch disallowed, just in case). Do note that this flag isn't always applied to what looks NSFW.
Type:
- boolean
fetcher :EmoteFetcher
- Description:
The
EmoteFetcherbeing used.
- Source:
- Overrides:
The EmoteFetcher being used.
Type:
channel :Channel
- Description:
The
Channelthis emote belongs to. Only accurate and constant on Twitch emotes. For other types of emotes, use theownerNameproperty.
- Source:
- Overrides:
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:
- Overrides:
The ID of this emote.
Type:
- string
type :'twitch'|'bttv'|'ffz'|'7tv'|null
- Description:
The type/platform of this emote.
- Source:
- Overrides:
The type/platform of this emote.
Type:
- 'twitch' | 'bttv' | 'ffz' | '7tv' | null
Methods
toLink(optionsopt) → {string}
- Description:
Gets the image link of the emote.
- Source:
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
Options for the link. Properties
|
Returns:
- The URL to the emote.
- Type
- string
toObject() → {object}
- Description:
Override of the override for
toObject. Will result in an Object representation of aSevenTVEmote.
- Source:
- Overrides:
Returns:
- Object representation of the
SevenTVEmote.
- Type
- object
(static) fromObject(emoteObjectopt, channelopt) → {SevenTVEmote}
- Description:
Converts an emote Object into a
SevenTVEmote
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
emoteObject |
object |
<optional> |
Object representation of this emote |
channel |
Channel |
<optional> |
|
Returns:
- A
SevenTVEmoteinstance.
- Type
- SevenTVEmote