Skip to content

Commit 93e2377

Browse files
committed
Release 2.9.0
1 parent ba538c7 commit 93e2377

5 files changed

+50
-48
lines changed

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote
4444

4545

4646
<section class="package">
47-
<h3>@mkody/twitch-emoticons 2.8.10</h3>
47+
<h3>@mkody/twitch-emoticons 2.9.0</h3>
4848
</section>
4949

5050

docs/struct_EmoteFetcher.js.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,12 @@ <h1 class="page-title">struct/EmoteFetcher.js</h1>
357357
if ('emotes' in rawEmotes) {
358358
// From an emote set (like "global")
359359
for (const data of rawEmotes.emotes) {
360-
this._cacheSevenTVEmote(channel, data.data, format);
360+
this._cacheSevenTVEmote(channel, data, format);
361361
}
362362
} else {
363363
// From users
364364
for (const data of rawEmotes.emote_set.emotes) {
365-
this._cacheSevenTVEmote(channel, data.data, format);
365+
this._cacheSevenTVEmote(channel, data, format);
366366
}
367367
}
368368

docs/struct_SevenTVEmote.js.html

+11-9
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ <h1 class="page-title">struct/SevenTVEmote.js</h1>
7979
* The name of the emote creator's channel.
8080
* @type {?string}
8181
*/
82-
this.ownerName = 'owner' in data ? data.owner.display_name : null;
82+
this.ownerName = 'owner' in data.data ? data.data.owner.display_name : null;
8383

8484
/**
8585
* Available image sizes.
8686
* @type {string[]}
8787
*/
88-
this.sizes = data.host.files
88+
this.sizes = data.data.host.files
8989
.filter(el => el.format === this.channel.format.toUpperCase())
9090
.map(el => el.name);
9191

9292
/**
9393
* If emote is animated.
9494
* @type {boolean}
9595
*/
96-
this.animated = data.animated;
96+
this.animated = data.data.animated;
9797

9898
/**
9999
* The image type of the emote.
@@ -139,12 +139,14 @@ <h1 class="page-title">struct/SevenTVEmote.js</h1>
139139
{
140140
code: emoteObject.code,
141141
name: emoteObject.code,
142-
animated: emoteObject.animated,
143-
owner: {
144-
display_name: emoteObject.ownerName
145-
},
146-
host: {
147-
files: sizes
142+
data: {
143+
animated: emoteObject.animated,
144+
owner: {
145+
display_name: emoteObject.ownerName
146+
},
147+
host: {
148+
files: sizes
149+
}
148150
}
149151
});
150152
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mkody/twitch-emoticons",
3-
"version": "2.8.10",
3+
"version": "2.9.0",
44
"description": "Gets Twitch, BTTV, FFZ and 7TV emotes as well as parsing text to emotes!",
55
"main": "src/index.js",
66
"typings": "typings/index.d.ts",
@@ -64,5 +64,5 @@
6464
"node": ">=18.0.0",
6565
"pnpm": ">=9"
6666
},
67-
"packageManager": "[email protected].1"
67+
"packageManager": "[email protected].2"
6868
}

pnpm-lock.yaml

+34-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)