@mkody/twitch-emoticons 2.4.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsdoc.json CHANGED
@@ -30,5 +30,10 @@
30
30
  "plugins": ["plugins/markdown"],
31
31
  "markdown": {
32
32
  "hardwrap": true
33
+ },
34
+ "docdash": {
35
+ "scopeInOutputPath": false,
36
+ "nameInOutputPath": false,
37
+ "versionInOutputPath": false
33
38
  }
34
39
  }
package/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2017 1Computer1
4
+ Copyright (c) 2019 André "Kody" Fernandes
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,18 +1,13 @@
1
1
  # twitch-emoticons
2
2
 
3
- Get a Twitch channel's Twitch emotes, BTTV emotes, and FFZ emotes!
3
+ Gets Twitch, BTTV, FFZ and 7TV emotes as well as parsing text to emotes!
4
4
 
5
- ### About this fork's 2.3.0+
5
+ ### Migrating from upstream
6
6
  You must now use a Twitch user ID instead of the username to fetch user's emotes.
7
7
  You can use [this page to quickly grab it](https://s.kdy.ch/twitchid/).
8
8
 
9
- _FFZ still supports names, but usage of the ID is recommended._
10
-
11
- ### About this fork's 2.4.0+
12
- You now need to use the official Twitch API to get emotes. For this you need to provide your client id and client secret.
13
- To get a client and secret create a Twitch app [here](https://dev.twitch.tv/console/apps/create), it's free.
14
-
15
- If you are only using BetterTTV and FrankerFaceZ you don't need to provide anything as they are independent from the Twitch API.
9
+ To fetch Twitch emotes you need to get a client and secret from Twitch [here](https://dev.twitch.tv/console/apps/create), it's free.
10
+ If you are only using BetterTTV, FrankerFaceZ and 7TV you don't need to provide Twitch app keys as they are independent from the Twitch API.
16
11
 
17
12
  ### Install
18
13
  ```sh
@@ -21,11 +16,18 @@ npm install @mkody/twitch-emoticons
21
16
  yarn add @mkody/twitch-emoticons
22
17
  ```
23
18
 
24
- ### Example
19
+ ### Examples
20
+
21
+ #### Basic Twitch emote parsing
25
22
 
26
23
  ```js
24
+ // With ESM import
25
+ import TwitchEmoticons from '@mkody/twitch-emoticons';
26
+ const { EmoteFetcher, EmoteParser } = TwitchEmoticons;
27
+ // ... or require()
27
28
  const { EmoteFetcher, EmoteParser } = require('@mkody/twitch-emoticons');
28
29
 
30
+ // Your Twitch app keys
29
31
  const clientId = '<your client id>';
30
32
  const clientSecret = '<your client secret>';
31
33
 
@@ -38,13 +40,82 @@ const parser = new EmoteParser(fetcher, {
38
40
  fetcher.fetchTwitchEmotes(null).then(() => {
39
41
  const kappa = fetcher.emotes.get('Kappa').toLink();
40
42
  console.log(kappa);
41
- // https://static-cdn.jtvnw.net/emoticons/v1/25/1.0
43
+ // https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/1.0
42
44
 
43
45
  const text = 'Hello :CoolCat:!';
44
46
  const parsed = parser.parse(text);
45
47
  console.log(parsed);
46
- // Hello ![CoolCat](https://static-cdn.jtvnw.net/emoticons/v1/58127/1.0 "CoolCat")!
48
+ // Hello ![CoolCat](https://static-cdn.jtvnw.net/emoticons/v2/58127/default/dark/1.0 "CoolCat")!
49
+ });
50
+ ```
51
+
52
+ #### All providers, global + channel, custom template and match pattern
53
+
54
+ ```js
55
+ const { EmoteFetcher, EmoteParser } = require('@mkody/twitch-emoticons');
56
+
57
+ // Your channel ID
58
+ const channelId = 44317909;
59
+
60
+ // Your Twitch app keys
61
+ const clientId = '<your client id>';
62
+ const clientSecret = '<your client secret>';
63
+
64
+ const fetcher = new EmoteFetcher(clientId, clientSecret);
65
+ const parser = new EmoteParser(fetcher, {
66
+ template: '<img class="emote" alt="{name}" src="{link}">', // Custom HTML format
67
+ match: /(\w+)+?/g // Match without :colons:
47
68
  });
69
+
70
+ Promise.all([
71
+ // Twitch global
72
+ fetcher.fetchTwitchEmotes(),
73
+ // Twitch channel
74
+ fetcher.fetchTwitchEmotes(channelId),
75
+ // BTTV global
76
+ fetcher.fetchBTTVEmotes(),
77
+ // BTTV channel
78
+ fetcher.fetchBTTVEmotes(channelId),
79
+ // 7TV global
80
+ fetcher.fetchSevenTVEmotes(),
81
+ // 7TV channel
82
+ fetcher.fetchSevenTVEmotes(channelId),
83
+ // FFZ channel
84
+ fetcher.fetchFFZEmotes(channelId)
85
+ ]).then(() => {
86
+ const globalEmotes = parser.parse('EZ Clap way too easy LUL now for the last bost monkaS');
87
+ console.log(globalEmotes);
88
+ // <img class="emote" alt="EZ" src="https://cdn.7tv.app/emote/6320bf2ad461b9ebf9413812/1x.webp"> <img class="emote" alt="Clap" src="https://cdn.7tv.app/emote/636b877aada75990352334c7/1x.webp"> way too easy <img class="emote" alt="LUL" src="https://static-cdn.jtvnw.net/emoticons/v2/425618/default/dark/1.0"> now for the last bost <img class="emote" alt="monkaS" src="https://cdn.betterttv.net/emote/56e9f494fff3cc5c35e5287e/1x">
89
+
90
+ const channelEmotes = parser.parse('KEKW that was 3Head TeriPoint');
91
+ console.log(channelEmotes);
92
+ // <img class="emote" alt="KEKW" src="https://cdn.betterttv.net/emote/5e9c6c187e090362f8b0b9e8/1x"> that was <img class="emote" alt="3Head" src="https://cdn.frankerfacez.com/emote/274406/1"> <img class="emote" alt="TeriPoint" src="https://cdn.7tv.app/emote/61dc299b600369a98b38ebef/1x.webp">
93
+ }).catch(err => {
94
+ console.error('Error loading emotes...');
95
+ console.error(err);
96
+ });
97
+ ```
98
+
99
+ #### 7TV formats
100
+
101
+ 7TV v3 delivers emotes in either WEBP or AVIF.
102
+ By default we'll return WEBP emotes but you can override this.
103
+
104
+ ```js
105
+ const { EmoteFetcher } = require('@mkody/twitch-emoticons');
106
+ const fetcher = new EmoteFetcher();
107
+
108
+ // Fetch global emotes in AVIF (channel id has to be `null` for global)
109
+ fetcher.fetchSevenTVEmotes(null, 'avif');
110
+
111
+ // Fetch 0kody's emotes with the package's default format (WEBP)
112
+ fetcher.fetchSevenTVEmotes(44317909);
113
+
114
+ // ... which is currently the same as
115
+ fetcher.fetchSevenTVEmotes(44317909, 'webp');
116
+
117
+ // Fetch Anatole's emotes in AVIF
118
+ fetcher.fetchSevenTVEmotes(24377667, 'avif');
48
119
  ```
49
120
 
50
121
  ### Links
@@ -55,4 +126,5 @@ fetcher.fetchTwitchEmotes(null).then(() => {
55
126
 
56
127
  This library uses the following:
57
128
  - [BetterTTV API](https://betterttv.com/)
58
- - [FrankerFaceZ API](http://www.frankerfacez.com/developers)
129
+ - [FrankerFaceZ API](https://www.frankerfacez.com/developers)
130
+ - [7TV API](https://7tv.app/)
@@ -14,6 +14,7 @@
14
14
  <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
15
  <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
16
  <script src="scripts/nav.js" defer></script>
17
+
17
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
19
  </head>
19
20
  <body>
@@ -27,7 +28,9 @@
27
28
 
28
29
  <nav >
29
30
 
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#toString">toString</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#fetchFFZEmotes">fetchFFZEmotes</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#filter">filter</a></li><li data-type='method'><a href="Collection.html#find">find</a></li><li data-type='method'><a href="Collection.html#map">map</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#toString">toString</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#_cacheBTTVEmote">_cacheBTTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_cacheFFZEmote">_cacheFFZEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_cacheTwitchEmote">_cacheTwitchEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawBTTVEmotes">_getRawBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawFFZEmotes">_getRawFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#_getRawTwitchEmotes">_getRawTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fetchTwitchEmotes">fetchTwitchEmotes</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#toString">toString</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#toString">toString</a></li></ul></li></ul>
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BTTVEmote.html">BTTVEmote</a><ul class='methods'><li data-type='method'><a href="BTTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="BTTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="Channel.html">Channel</a><ul class='methods'><li data-type='method'><a href="Channel.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="Channel.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#.filter#filter">filter</a></li><li data-type='method'><a href="Collection.html#.find#find">find</a></li><li data-type='method'><a href="Collection.html#.map#map">map</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#.toString#toString">toString</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#._cacheBTTVEmote#_cacheBTTVEmote">_cacheBTTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheFFZEmote#_cacheFFZEmote">_cacheFFZEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheSevenTVEmote#_cacheSevenTVEmote">_cacheSevenTVEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._cacheTwitchEmote#_cacheTwitchEmote">_cacheTwitchEmote</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawBTTVEmotes#_getRawBTTVEmotes">_getRawBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawFFZEmotes#_getRawFFZEmotes">_getRawFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawSevenTVEmotes#_getRawSevenTVEmotes">_getRawSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#._getRawTwitchEmotes#_getRawTwitchEmotes">_getRawTwitchEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchBTTVEmotes#fetchBTTVEmotes">fetchBTTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchFFZEmotes#fetchFFZEmotes">fetchFFZEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchSevenTVEmotes#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#.fetchTwitchEmotes#fetchTwitchEmotes">fetchTwitchEmotes</a></li></ul></li><li><a href="EmoteParser.html">EmoteParser</a><ul class='methods'><li data-type='method'><a href="EmoteParser.html#.parse#parse">parse</a></li></ul></li><li><a href="FFZEmote.html">FFZEmote</a><ul class='methods'><li data-type='method'><a href="FFZEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="FFZEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#.toString#toString">toString</a></li></ul></li><li><a href="TwitchEmote.html">TwitchEmote</a><ul class='methods'><li data-type='method'><a href="TwitchEmote.html#.toLink#toLink">toLink</a></li><li data-type='method'><a href="TwitchEmote.html#.toString#toString">toString</a></li></ul></li></ul>
33
+
31
34
  </nav>
32
35
 
33
36
  <div id="main">
@@ -45,7 +48,9 @@
45
48
  <header>
46
49
 
47
50
  <h2>
48
- BTTVEmote
51
+
52
+ BTTVEmote
53
+
49
54
  </h2>
50
55
 
51
56
 
@@ -67,6 +72,10 @@
67
72
 
68
73
 
69
74
  <dl class="details">
75
+
76
+ <dt class="tag-description">Description:</dt>
77
+ <dd class="tag-description"><ul class="dummy"><li><p>A BTTV emote.</p></li></ul></dd>
78
+
70
79
 
71
80
 
72
81
  <dt class="tag-source">Source:</dt>
@@ -110,12 +119,6 @@
110
119
 
111
120
 
112
121
 
113
- <div class="description usertext">
114
- <p>A BTTV emote.</p>
115
- </div>
116
-
117
-
118
-
119
122
 
120
123
 
121
124
 
@@ -124,7 +127,7 @@
124
127
 
125
128
 
126
129
 
127
- <h5>Parameters:</h5>
130
+ <h5 class="h5-parameters">Parameters:</h5>
128
131
 
129
132
 
130
133
  <table class="params">
@@ -158,6 +161,7 @@
158
161
  <span class="param-type"><a href="Channel.html">Channel</a></span>
159
162
 
160
163
 
164
+
161
165
 
162
166
  </td>
163
167
 
@@ -181,6 +185,7 @@
181
185
  <span class="param-type">string</span>
182
186
 
183
187
 
188
+
184
189
 
185
190
  </td>
186
191
 
@@ -204,6 +209,7 @@
204
209
  <span class="param-type">data</span>
205
210
 
206
211
 
212
+
207
213
 
208
214
  </td>
209
215
 
@@ -275,6 +281,12 @@
275
281
 
276
282
 
277
283
  <dl class="details">
284
+
285
+ <dt class="tag-description">Description:</dt>
286
+ <dd class="tag-description"><ul class="dummy"><li><p>The channel this emote belongs to.<br>
287
+ Only accurate and constant on Twitch emotes.<br>
288
+ For other types of emotes, use the <code>owner</code> or <code>ownerName</code> property.</p></li></ul></dd>
289
+
278
290
 
279
291
 
280
292
  <dt class="tag-source">Source:</dt>
@@ -331,13 +343,14 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
331
343
 
332
344
 
333
345
 
334
- <h5>Type:</h5>
346
+ <h5 class="h5-types">Type:</h5>
335
347
  <ul>
336
348
  <li>
337
349
 
338
350
  <span class="param-type"><a href="Channel.html">Channel</a></span>
339
351
 
340
352
 
353
+
341
354
  </li>
342
355
  </ul>
343
356
 
@@ -355,6 +368,10 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
355
368
 
356
369
 
357
370
  <dl class="details">
371
+
372
+ <dt class="tag-description">Description:</dt>
373
+ <dd class="tag-description"><ul class="dummy"><li><p>The code or name of the emote.</p></li></ul></dd>
374
+
358
375
 
359
376
 
360
377
  <dt class="tag-source">Source:</dt>
@@ -409,13 +426,14 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
409
426
 
410
427
 
411
428
 
412
- <h5>Type:</h5>
429
+ <h5 class="h5-types">Type:</h5>
413
430
  <ul>
414
431
  <li>
415
432
 
416
433
  <span class="param-type">string</span>
417
434
 
418
435
 
436
+
419
437
  </li>
420
438
  </ul>
421
439
 
@@ -433,6 +451,10 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
433
451
 
434
452
 
435
453
  <dl class="details">
454
+
455
+ <dt class="tag-description">Description:</dt>
456
+ <dd class="tag-description"><ul class="dummy"><li><p>The emote fetcher.</p></li></ul></dd>
457
+
436
458
 
437
459
 
438
460
  <dt class="tag-source">Source:</dt>
@@ -487,13 +509,14 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
487
509
 
488
510
 
489
511
 
490
- <h5>Type:</h5>
512
+ <h5 class="h5-types">Type:</h5>
491
513
  <ul>
492
514
  <li>
493
515
 
494
516
  <span class="param-type"><a href="EmoteFetcher.html">EmoteFetcher</a></span>
495
517
 
496
518
 
519
+
497
520
  </li>
498
521
  </ul>
499
522
 
@@ -511,6 +534,10 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
511
534
 
512
535
 
513
536
  <dl class="details">
537
+
538
+ <dt class="tag-description">Description:</dt>
539
+ <dd class="tag-description"><ul class="dummy"><li><p>The ID of this emote.</p></li></ul></dd>
540
+
514
541
 
515
542
 
516
543
  <dt class="tag-source">Source:</dt>
@@ -565,13 +592,14 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
565
592
 
566
593
 
567
594
 
568
- <h5>Type:</h5>
595
+ <h5 class="h5-types">Type:</h5>
569
596
  <ul>
570
597
  <li>
571
598
 
572
599
  <span class="param-type">string</span>
573
600
 
574
601
 
602
+
575
603
  </li>
576
604
  </ul>
577
605
 
@@ -589,6 +617,10 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
589
617
 
590
618
 
591
619
  <dl class="details">
620
+
621
+ <dt class="tag-description">Description:</dt>
622
+ <dd class="tag-description"><ul class="dummy"><li><p>The image type of the emote.</p></li></ul></dd>
623
+
592
624
 
593
625
 
594
626
  <dt class="tag-source">Source:</dt>
@@ -638,13 +670,14 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
638
670
 
639
671
 
640
672
 
641
- <h5>Type:</h5>
673
+ <h5 class="h5-types">Type:</h5>
642
674
  <ul>
643
675
  <li>
644
676
 
645
677
  <span class="param-type">string</span>
646
678
 
647
679
 
680
+
648
681
  </li>
649
682
  </ul>
650
683
 
@@ -655,13 +688,18 @@ For other types of emotes, use the <code>owner</code> or <code>ownerName</code>
655
688
 
656
689
 
657
690
 
658
- <h4 class="name" id="owner"><span class="type-signature">(readonly, nullable) </span>owner<span class="type-signature"> :<a href="Channel.html">Channel</a></span></h4>
691
+ <h4 class="name" id="owner"><span class="type-signature type-signature-readonly, nullable">(readonly, nullable) </span>owner<span class="type-signature"> :<a href="Channel.html">Channel</a></span></h4>
659
692
 
660
693
 
661
694
 
662
695
 
663
696
 
664
697
  <dl class="details">
698
+
699
+ <dt class="tag-description">Description:</dt>
700
+ <dd class="tag-description"><ul class="dummy"><li><p>The channel of this emote's creator.<br>
701
+ Not guaranteed to contain the emote, or be cached.</p></li></ul></dd>
702
+
665
703
 
666
704
 
667
705
  <dt class="tag-source">Source:</dt>
@@ -712,13 +750,14 @@ Not guaranteed to contain the emote, or be cached.</p>
712
750
 
713
751
 
714
752
 
715
- <h5>Type:</h5>
753
+ <h5 class="h5-types">Type:</h5>
716
754
  <ul>
717
755
  <li>
718
756
 
719
757
  <span class="param-type"><a href="Channel.html">Channel</a></span>
720
758
 
721
759
 
760
+
722
761
  </li>
723
762
  </ul>
724
763
 
@@ -729,13 +768,18 @@ Not guaranteed to contain the emote, or be cached.</p>
729
768
 
730
769
 
731
770
 
732
- <h4 class="name" id="ownerName"><span class="type-signature">(nullable) </span>ownerName<span class="type-signature"> :string</span></h4>
771
+ <h4 class="name" id="ownerName"><span class="type-signature type-signature-nullable">(nullable) </span>ownerName<span class="type-signature"> :string</span></h4>
733
772
 
734
773
 
735
774
 
736
775
 
737
776
 
738
777
  <dl class="details">
778
+
779
+ <dt class="tag-description">Description:</dt>
780
+ <dd class="tag-description"><ul class="dummy"><li><p>The name of the emote creator's channel.<br>
781
+ Will be null for global or channel emotes.</p></li></ul></dd>
782
+
739
783
 
740
784
 
741
785
  <dt class="tag-source">Source:</dt>
@@ -786,13 +830,14 @@ Will be null for global or channel emotes.</p>
786
830
 
787
831
 
788
832
 
789
- <h5>Type:</h5>
833
+ <h5 class="h5-types">Type:</h5>
790
834
  <ul>
791
835
  <li>
792
836
 
793
837
  <span class="param-type">string</span>
794
838
 
795
839
 
840
+
796
841
  </li>
797
842
  </ul>
798
843
 
@@ -810,6 +855,11 @@ Will be null for global or channel emotes.</p>
810
855
 
811
856
 
812
857
  <dl class="details">
858
+
859
+ <dt class="tag-description">Description:</dt>
860
+ <dd class="tag-description"><ul class="dummy"><li><p>The type of this emote.<br>
861
+ Either <code>twitch</code>, <code>bttv</code>, <code>ffz</code>, or '7tv'.</p></li></ul></dd>
862
+
813
863
 
814
864
 
815
865
  <dt class="tag-source">Source:</dt>
@@ -860,18 +910,19 @@ Will be null for global or channel emotes.</p>
860
910
 
861
911
  <div class="description usertext">
862
912
  <p>The type of this emote.<br>
863
- Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
913
+ Either <code>twitch</code>, <code>bttv</code>, <code>ffz</code>, or '7tv'.</p>
864
914
  </div>
865
915
 
866
916
 
867
917
 
868
- <h5>Type:</h5>
918
+ <h5 class="h5-types">Type:</h5>
869
919
  <ul>
870
920
  <li>
871
921
 
872
922
  <span class="param-type">string</span>
873
923
 
874
924
 
925
+
875
926
  </li>
876
927
  </ul>
877
928
 
@@ -899,6 +950,10 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
899
950
 
900
951
 
901
952
  <dl class="details">
953
+
954
+ <dt class="tag-description">Description:</dt>
955
+ <dd class="tag-description"><ul class="dummy"><li><p>Gets the image link of the emote.</p></li></ul></dd>
956
+
902
957
 
903
958
 
904
959
  <dt class="tag-source">Source:</dt>
@@ -942,12 +997,6 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
942
997
 
943
998
 
944
999
 
945
- <div class="description usertext">
946
- <p>Gets the image link of the emote.</p>
947
- </div>
948
-
949
-
950
-
951
1000
 
952
1001
 
953
1002
 
@@ -956,7 +1005,7 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
956
1005
 
957
1006
 
958
1007
 
959
- <h5>Parameters:</h5>
1008
+ <h5 class="h5-parameters">Parameters:</h5>
960
1009
 
961
1010
 
962
1011
  <table class="params">
@@ -992,6 +1041,7 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
992
1041
  <span class="param-type">number</span>
993
1042
 
994
1043
 
1044
+
995
1045
 
996
1046
  </td>
997
1047
 
@@ -1027,7 +1077,7 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
1027
1077
 
1028
1078
 
1029
1079
 
1030
- <h5>Returns:</h5>
1080
+ <h5 class="h5-returns">Returns:</h5>
1031
1081
 
1032
1082
 
1033
1083
 
@@ -1041,6 +1091,7 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
1041
1091
  <span class="param-type">string</span>
1042
1092
 
1043
1093
 
1094
+
1044
1095
  </dd>
1045
1096
  </dl>
1046
1097
 
@@ -1061,6 +1112,11 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
1061
1112
 
1062
1113
 
1063
1114
  <dl class="details">
1115
+
1116
+ <dt class="tag-description">Description:</dt>
1117
+ <dd class="tag-description"><ul class="dummy"><li><p>Override for <code>toString</code>.<br>
1118
+ Will give the emote's name.</p></li></ul></dd>
1119
+
1064
1120
 
1065
1121
 
1066
1122
  <dt class="tag-source">Source:</dt>
@@ -1109,11 +1165,6 @@ Either <code>twitch</code>, <code>bttv</code>, or <code>ffz</code>.</p>
1109
1165
 
1110
1166
 
1111
1167
 
1112
- <div class="description usertext">
1113
- <p>Override for <code>toString</code>.<br>
1114
- Will give the emote's name.</p>
1115
- </div>
1116
-
1117
1168
 
1118
1169
 
1119
1170
 
@@ -1136,9 +1187,7 @@ Will give the emote's name.</p>
1136
1187
 
1137
1188
 
1138
1189
 
1139
-
1140
-
1141
- <h5>Returns:</h5>
1190
+ <h5 class="h5-returns">Returns:</h5>
1142
1191
 
1143
1192
 
1144
1193
 
@@ -1152,6 +1201,7 @@ Will give the emote's name.</p>
1152
1201
  <span class="param-type">string</span>
1153
1202
 
1154
1203
 
1204
+
1155
1205
  </dd>
1156
1206
  </dl>
1157
1207
 
@@ -1179,7 +1229,7 @@ Will give the emote's name.</p>
1179
1229
  <br class="clear">
1180
1230
 
1181
1231
  <footer>
1182
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1232
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.0</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1183
1233
  </footer>
1184
1234
 
1185
1235
  <script>prettyPrint();</script>