ChannelEmote
Represents a Twitch channel emote.
Extends
Emote
<T
,"channel"
>
Type parameters
Type parameter |
---|
T extends EventSubConnection |
Constructors
new ChannelEmote()
Parameters
Parameter | Type |
---|---|
chatbot | ChatBot <T > |
data | ChannelEmote & object |
Returns
ChannelEmote
<T
>
Overrides
Source
twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:21
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
chatbot | readonly | ChatBot <T > | The current instance of the chatbot. | Emote .chatbot |
emoteSetId | readonly | string | The Id of the emote set. | - |
id | readonly | string | The id of the emote. | Emote .id |
name | readonly | string | The name of the emote. | Emote .name |
type | readonly | EmoteType | The type of the emote. | - |
Accessors
animated
Whether the emote is animated.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/BaseEmote.ts:62
hasDarkTheme
Checks whether the emote is dark theme.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/Emote.ts:37
hasLightTheme
Checks whether the emote is light theme.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/Emote.ts:30
ownerId
The Id of the owner of the emote.
Returns
null
| string
Source
twitchfy/packages/chatbot/src/structures/BaseEmote.ts:41
setId
The Id of the emote set.
Returns
null
| string
Source
twitchfy/packages/chatbot/src/structures/BaseEmote.ts:48
static
Whether the emote is static.
Returns
boolean
Source
twitchfy/packages/chatbot/src/structures/BaseEmote.ts:55
tier
Returns the subscription tier necessary to use the emote. If the emote is not a subscription emote, it will return null.
Returns
null
| number
Source
twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:38
Methods
fetch()
Fetches the emote from the API.
Returns
Promise
<null
| ChannelEmote
<T
>>
The fetched emote. Returns null if the emote was not found.
Inherited from
Source
twitchfy/packages/chatbot/src/structures/BaseEmote.ts:86
getURL()
Gets the URL of the emote.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | EmoteURLOptions | The options to get the URL of the emote. |
Returns
string
Returns the URL of the emote.
Inherited from
Source
twitchfy/packages/chatbot/src/structures/Emote.ts:46
isChannel()
Overrides isChannel method from BaseEmote to assert this as ChannelEmote and not BaseEmote.
Returns
this is ChannelEmote<T>
Whether the emote is a channel emote.
Overrides
Source
twitchfy/packages/chatbot/src/structures/ChannelEmote.ts:31
isGlobal()
Check if the emote is a global Twitch emote.
Returns
this is BaseEmote<T, "global">
A boolean indicating whether the emote is a global Twitch emote.