@mkody/twitch-emoticons 2.9.6 → 3.0.0-beta.2

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.
Files changed (80) hide show
  1. package/README.md +530 -169
  2. package/dist/TwitchEmoticons.cjs +950 -0
  3. package/dist/TwitchEmoticons.esm.min.js +7 -0
  4. package/dist/TwitchEmoticons.esm.min.js.map +7 -0
  5. package/dist/TwitchEmoticons.min.js +2 -20
  6. package/dist/TwitchEmoticons.min.js.map +4 -4
  7. package/package.json +99 -72
  8. package/src/index.js +38 -12
  9. package/src/struct/BTTVEmote.js +72 -74
  10. package/src/struct/Channel.js +48 -48
  11. package/src/struct/Emote.js +71 -71
  12. package/src/struct/EmoteFetcher.js +358 -322
  13. package/src/struct/EmoteParser.js +95 -84
  14. package/src/struct/EmoteTypeMapper.js +9 -9
  15. package/src/struct/FFZEmote.js +91 -93
  16. package/src/struct/SevenTVEmote.js +88 -90
  17. package/src/struct/TwitchEmote.js +72 -71
  18. package/src/util/Collection.js +69 -55
  19. package/src/util/Constants.js +30 -30
  20. package/typings/index.d.cts +254 -0
  21. package/typings/index.d.ts +216 -99
  22. package/.jsdoc.json +0 -46
  23. package/.nvmrc +0 -1
  24. package/docs/BTTVEmote.html +0 -1532
  25. package/docs/Channel.html +0 -824
  26. package/docs/Collection.html +0 -798
  27. package/docs/Emote.html +0 -832
  28. package/docs/EmoteFetcher.html +0 -3741
  29. package/docs/EmoteParser.html +0 -1187
  30. package/docs/FFZEmote.html +0 -1686
  31. package/docs/SevenTVEmote.html +0 -1596
  32. package/docs/TwitchEmote.html +0 -1528
  33. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  34. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  35. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  36. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  37. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  38. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  39. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  40. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  41. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  42. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
  43. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  44. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  45. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  46. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  47. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
  48. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  49. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  50. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  51. package/docs/index.html +0 -233
  52. package/docs/scripts/collapse.js +0 -39
  53. package/docs/scripts/commonNav.js +0 -28
  54. package/docs/scripts/linenumber.js +0 -25
  55. package/docs/scripts/nav.js +0 -12
  56. package/docs/scripts/polyfill.js +0 -4
  57. package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
  58. package/docs/scripts/prettify/lang-css.js +0 -2
  59. package/docs/scripts/prettify/prettify.js +0 -28
  60. package/docs/scripts/search.js +0 -99
  61. package/docs/struct_BTTVEmote.js.html +0 -162
  62. package/docs/struct_Channel.js.html +0 -132
  63. package/docs/struct_Emote.js.html +0 -159
  64. package/docs/struct_EmoteFetcher.js.html +0 -429
  65. package/docs/struct_EmoteParser.js.html +0 -172
  66. package/docs/struct_FFZEmote.js.html +0 -185
  67. package/docs/struct_SevenTVEmote.js.html +0 -180
  68. package/docs/struct_TwitchEmote.js.html +0 -159
  69. package/docs/styles/jsdoc.css +0 -776
  70. package/docs/styles/prettify.css +0 -80
  71. package/docs/util_Collection.js.html +0 -151
  72. package/eslint.config.mjs +0 -215
  73. package/jest.config.js +0 -198
  74. package/test/BTTV.test.js +0 -48
  75. package/test/FFZ.test.js +0 -71
  76. package/test/SevenTV.test.js +0 -71
  77. package/test/ToFromObject.test.js +0 -156
  78. package/test/Twitch.test.js +0 -64
  79. package/test/__snapshots__/ToFromObject.test.js.snap +0 -121
  80. package/test/other.test.js +0 -72
@@ -1,3741 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>EmoteFetcher - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
-
18
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
- </head>
20
- <body>
21
-
22
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
- <label for="nav-trigger" class="navicon-button x">
24
- <div class="navicon"></div>
25
- </label>
26
-
27
- <label for="nav-trigger" class="overlay"></label>
28
-
29
- <nav >
30
-
31
-
32
- <h2><a href="index.html">Home</a></h2><h2><a href="https://github.com/mkody/twitch-emoticons" target="_blank" class="menu-item" id="github_link" >GitHub</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#toObject">toObject</a></li><li data-type='method'><a href="BTTVEmote.html#.fromObject">fromObject</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><li data-type='method'><a href="Channel.html#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li></ul></li><li><a href="Emote.html">Emote</a><ul class='methods'><li data-type='method'><a href="Emote.html#toObject">toObject</a></li></ul></li><li><a href="EmoteFetcher.html">EmoteFetcher</a><ul class='methods'><li data-type='method'><a href="EmoteFetcher.html#fetchTwitchEmotes">fetchTwitchEmotes</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#fetchSevenTVEmotes">fetchSevenTVEmotes</a></li><li data-type='method'><a href="EmoteFetcher.html#fromObject">fromObject</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#toObject">toObject</a></li><li data-type='method'><a href="FFZEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="SevenTVEmote.html">SevenTVEmote</a><ul class='methods'><li data-type='method'><a href="SevenTVEmote.html#toLink">toLink</a></li><li data-type='method'><a href="SevenTVEmote.html#toObject">toObject</a></li><li data-type='method'><a href="SevenTVEmote.html#.fromObject">fromObject</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#toObject">toObject</a></li><li data-type='method'><a href="TwitchEmote.html#.fromObject">fromObject</a></li></ul></li><li><a href="Collection.html">Collection</a><ul class='methods'><li data-type='method'><a href="Collection.html#find">find</a></li><li data-type='method'><a href="Collection.html#filter">filter</a></li><li data-type='method'><a href="Collection.html#map">map</a></li></ul></li></ul>
33
-
34
- </nav>
35
-
36
- <div id="main">
37
-
38
- <h1 class="page-title">EmoteFetcher</h1>
39
-
40
-
41
-
42
-
43
-
44
-
45
-
46
- <section>
47
-
48
- <header>
49
-
50
- <h2>
51
-
52
- EmoteFetcher
53
-
54
- </h2>
55
-
56
-
57
- </header>
58
-
59
- <article>
60
-
61
- <div class="container-overview">
62
-
63
-
64
-
65
-
66
-
67
- <h4 class="name" id="EmoteFetcher"><span class="type-signature"></span>new EmoteFetcher<span class="signature">(clientId, clientSecret, options)</span><span class="type-signature"></span></h4>
68
-
69
-
70
-
71
-
72
-
73
-
74
- <dl class="details">
75
-
76
- <dt class="tag-description">Description:</dt>
77
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches and caches emotes.</p></li></ul></dd>
78
-
79
-
80
-
81
- <dt class="tag-source">Source:</dt>
82
- <dd class="tag-source"><ul class="dummy"><li>
83
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line21">line 21</a>
84
- </li></ul></dd>
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- </dl>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- <h5 class="h5-parameters">Parameters:</h5>
131
-
132
-
133
- <table class="params">
134
- <thead>
135
- <tr>
136
-
137
- <th>Name</th>
138
-
139
-
140
- <th>Type</th>
141
-
142
-
143
-
144
-
145
-
146
- <th class="last">Description</th>
147
- </tr>
148
- </thead>
149
-
150
- <tbody>
151
-
152
-
153
- <tr>
154
-
155
- <td class="name"><code>clientId</code></td>
156
-
157
-
158
- <td class="type">
159
-
160
-
161
- <span class="param-type">string</span>
162
-
163
-
164
-
165
-
166
- </td>
167
-
168
-
169
-
170
-
171
-
172
- <td class="description last"><p>The client id for the twitch api.</p></td>
173
- </tr>
174
-
175
-
176
-
177
- <tr>
178
-
179
- <td class="name"><code>clientSecret</code></td>
180
-
181
-
182
- <td class="type">
183
-
184
-
185
- <span class="param-type">string</span>
186
-
187
-
188
-
189
-
190
- </td>
191
-
192
-
193
-
194
-
195
-
196
- <td class="description last"><p>The client secret for the twitch api.</p></td>
197
- </tr>
198
-
199
-
200
-
201
- <tr>
202
-
203
- <td class="name"><code>options</code></td>
204
-
205
-
206
- <td class="type">
207
-
208
-
209
- <span class="param-type">object</span>
210
-
211
-
212
-
213
-
214
- </td>
215
-
216
-
217
-
218
-
219
-
220
- <td class="description last"><p>Additional options.</p>
221
- <h6>Properties</h6>
222
-
223
-
224
- <table class="params">
225
- <thead>
226
- <tr>
227
-
228
- <th>Name</th>
229
-
230
-
231
- <th>Type</th>
232
-
233
-
234
-
235
-
236
-
237
- <th class="last">Description</th>
238
- </tr>
239
- </thead>
240
-
241
- <tbody>
242
-
243
-
244
- <tr>
245
-
246
- <td class="name"><code>apiClient</code></td>
247
-
248
-
249
- <td class="type">
250
-
251
-
252
- <span class="param-type">ApiClient</span>
253
-
254
-
255
-
256
-
257
- </td>
258
-
259
-
260
-
261
-
262
-
263
- <td class="description last"><p>Bring your own Twurple ApiClient.</p></td>
264
- </tr>
265
-
266
-
267
- </tbody>
268
- </table>
269
-
270
- </td>
271
- </tr>
272
-
273
-
274
- </tbody>
275
- </table>
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
- </div>
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
- <h3 class="subsection-title">Members</h3>
313
-
314
-
315
-
316
- <h4 class="name" id="apiClient"><span class="type-signature"></span>apiClient<span class="type-signature"></span></h4>
317
-
318
-
319
-
320
-
321
-
322
- <dl class="details">
323
-
324
- <dt class="tag-description">Description:</dt>
325
- <dd class="tag-description"><ul class="dummy"><li><p>Twitch api client.</p></li></ul></dd>
326
-
327
-
328
-
329
- <dt class="tag-source">Source:</dt>
330
- <dd class="tag-source"><ul class="dummy"><li>
331
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line30">line 30</a>
332
- </li></ul></dd>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
- </dl>
365
-
366
-
367
-
368
-
369
-
370
- <div class="description usertext">
371
- <p>Twitch api client.</p>
372
- </div>
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
- <h4 class="name" id="emotes"><span class="type-signature"></span>emotes<span class="type-signature"> :<a href="Collection.html">Collection</a>.&lt;string, <a href="Emote.html">Emote</a>></span></h4>
384
-
385
-
386
-
387
-
388
-
389
- <dl class="details">
390
-
391
- <dt class="tag-description">Description:</dt>
392
- <dd class="tag-description"><ul class="dummy"><li><p>Cached emotes.<br>
393
- Collectionped by emote code to Emote instance.</p></li></ul></dd>
394
-
395
-
396
-
397
- <dt class="tag-source">Source:</dt>
398
- <dd class="tag-source"><ul class="dummy"><li>
399
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line38">line 38</a>
400
- </li></ul></dd>
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
- </dl>
433
-
434
-
435
-
436
-
437
-
438
- <div class="description usertext">
439
- <p>Cached emotes.<br>
440
- Collectionped by emote code to Emote instance.</p>
441
- </div>
442
-
443
-
444
-
445
- <h5 class="h5-types">Type:</h5>
446
- <ul>
447
- <li>
448
-
449
- <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Emote.html">Emote</a>></span>
450
-
451
-
452
-
453
- </li>
454
- </ul>
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
- <h4 class="name" id="channels"><span class="type-signature"></span>channels<span class="type-signature"> :<a href="Collection.html">Collection</a>.&lt;string, <a href="Channel.html">Channel</a>></span></h4>
464
-
465
-
466
-
467
-
468
-
469
- <dl class="details">
470
-
471
- <dt class="tag-description">Description:</dt>
472
- <dd class="tag-description"><ul class="dummy"><li><p>Cached channels.<br>
473
- Collectionped by name to Channel instance.</p></li></ul></dd>
474
-
475
-
476
-
477
- <dt class="tag-source">Source:</dt>
478
- <dd class="tag-source"><ul class="dummy"><li>
479
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line45">line 45</a>
480
- </li></ul></dd>
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
- </dl>
513
-
514
-
515
-
516
-
517
-
518
- <div class="description usertext">
519
- <p>Cached channels.<br>
520
- Collectionped by name to Channel instance.</p>
521
- </div>
522
-
523
-
524
-
525
- <h5 class="h5-types">Type:</h5>
526
- <ul>
527
- <li>
528
-
529
- <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Channel.html">Channel</a>></span>
530
-
531
-
532
-
533
- </li>
534
- </ul>
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
- <h4 class="name" id="ffzModifiersFetched"><span class="type-signature"></span>ffzModifiersFetched<span class="type-signature"> :boolean</span></h4>
544
-
545
-
546
-
547
-
548
-
549
- <dl class="details">
550
-
551
- <dt class="tag-description">Description:</dt>
552
- <dd class="tag-description"><ul class="dummy"><li><p>Save if we fetched FFZ's modifier emotes once.</p></li></ul></dd>
553
-
554
-
555
-
556
- <dt class="tag-source">Source:</dt>
557
- <dd class="tag-source"><ul class="dummy"><li>
558
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line51">line 51</a>
559
- </li></ul></dd>
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
- </dl>
592
-
593
-
594
-
595
-
596
-
597
- <div class="description usertext">
598
- <p>Save if we fetched FFZ's modifier emotes once.</p>
599
- </div>
600
-
601
-
602
-
603
- <h5 class="h5-types">Type:</h5>
604
- <ul>
605
- <li>
606
-
607
- <span class="param-type">boolean</span>
608
-
609
-
610
-
611
- </li>
612
- </ul>
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
- <h4 class="name" id="globalChannel"><span class="type-signature type-signature-readonly, nullable">(readonly, nullable) </span>globalChannel<span class="type-signature"> :<a href="Channel.html">Channel</a></span></h4>
622
-
623
-
624
-
625
-
626
-
627
- <dl class="details">
628
-
629
- <dt class="tag-description">Description:</dt>
630
- <dd class="tag-description"><ul class="dummy"><li><p>The global channel for Twitch, BTTV and 7TV.</p></li></ul></dd>
631
-
632
-
633
-
634
- <dt class="tag-source">Source:</dt>
635
- <dd class="tag-source"><ul class="dummy"><li>
636
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line59">line 59</a>
637
- </li></ul></dd>
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
- </dl>
670
-
671
-
672
-
673
-
674
-
675
- <div class="description usertext">
676
- <p>The global channel for Twitch, BTTV and 7TV.</p>
677
- </div>
678
-
679
-
680
-
681
- <h5 class="h5-types">Type:</h5>
682
- <ul>
683
- <li>
684
-
685
- <span class="param-type"><a href="Channel.html">Channel</a></span>
686
-
687
-
688
-
689
- </li>
690
- </ul>
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
- <h3 class="subsection-title">Methods</h3>
702
-
703
-
704
-
705
-
706
-
707
-
708
- <h4 class="name" id="_setupChannel"><span class="type-signature type-signature-private">(private) </span>_setupChannel<span class="signature">(channel_id, format<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Channel.html">Channel</a>}</span></h4>
709
-
710
-
711
-
712
-
713
-
714
-
715
- <dl class="details">
716
-
717
- <dt class="tag-description">Description:</dt>
718
- <dd class="tag-description"><ul class="dummy"><li><p>Sets up a channel</p></li></ul></dd>
719
-
720
-
721
-
722
- <dt class="tag-source">Source:</dt>
723
- <dd class="tag-source"><ul class="dummy"><li>
724
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line71">line 71</a>
725
- </li></ul></dd>
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
- </dl>
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
- <h5 class="h5-parameters">Parameters:</h5>
772
-
773
-
774
- <table class="params">
775
- <thead>
776
- <tr>
777
-
778
- <th>Name</th>
779
-
780
-
781
- <th>Type</th>
782
-
783
-
784
- <th>Attributes</th>
785
-
786
-
787
-
788
- <th>Default</th>
789
-
790
-
791
- <th class="last">Description</th>
792
- </tr>
793
- </thead>
794
-
795
- <tbody>
796
-
797
-
798
- <tr>
799
-
800
- <td class="name"><code>channel_id</code></td>
801
-
802
-
803
- <td class="type">
804
-
805
-
806
- <span class="param-type">int</span>
807
-
808
-
809
-
810
-
811
- </td>
812
-
813
-
814
- <td class="attributes">
815
-
816
-
817
-
818
-
819
-
820
- </td>
821
-
822
-
823
-
824
- <td class="default">
825
-
826
- </td>
827
-
828
-
829
- <td class="description last"><p>ID of the channel.</p></td>
830
- </tr>
831
-
832
-
833
-
834
- <tr>
835
-
836
- <td class="name"><code>format</code></td>
837
-
838
-
839
- <td class="type">
840
-
841
-
842
- <span class="param-type">string</span>
843
-
844
-
845
-
846
-
847
- </td>
848
-
849
-
850
- <td class="attributes">
851
-
852
- &lt;optional><br>
853
-
854
-
855
-
856
-
857
-
858
- </td>
859
-
860
-
861
-
862
- <td class="default">
863
-
864
- <code>null</code>
865
-
866
- </td>
867
-
868
-
869
- <td class="description last"><p>The type file format to use (webp/avif).</p></td>
870
- </tr>
871
-
872
-
873
- </tbody>
874
- </table>
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
-
888
-
889
- <h5 class="h5-throws">Throws:</h5>
890
-
891
-
892
-
893
- <dl>
894
- <dt>
895
- <div class="param-desc usertext">
896
- <p>When Twitch Client ID or Client Secret were not provided.</p>
897
- </div>
898
- </dt>
899
- <dd></dd>
900
- <dt>
901
- <dl class="param-type">
902
- <dt>
903
- Type
904
- </dt>
905
- <dd>
906
-
907
- <span class="param-type">Error</span>
908
-
909
-
910
-
911
- </dd>
912
- </dl>
913
- </dt>
914
- <dd></dd>
915
- </dl>
916
-
917
-
918
-
919
-
920
-
921
- <h5 class="h5-returns">Returns:</h5>
922
-
923
-
924
-
925
-
926
- <dl class="param-type">
927
- <dt>
928
- Type
929
- </dt>
930
- <dd>
931
-
932
- <span class="param-type"><a href="Channel.html">Channel</a></span>
933
-
934
-
935
-
936
- </dd>
937
- </dl>
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
-
948
- <h4 class="name" id="_getRawTwitchEmotes"><span class="type-signature type-signature-private">(private) </span>_getRawTwitchEmotes<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;object>>}</span></h4>
949
-
950
-
951
-
952
-
953
-
954
-
955
- <dl class="details">
956
-
957
- <dt class="tag-description">Description:</dt>
958
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw Twitch emotes data for a channel.</p></li></ul></dd>
959
-
960
-
961
-
962
- <dt class="tag-source">Source:</dt>
963
- <dd class="tag-source"><ul class="dummy"><li>
964
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line87">line 87</a>
965
- </li></ul></dd>
966
-
967
-
968
-
969
-
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
-
978
-
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
- </dl>
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
- <h5 class="h5-parameters">Parameters:</h5>
1012
-
1013
-
1014
- <table class="params">
1015
- <thead>
1016
- <tr>
1017
-
1018
- <th>Name</th>
1019
-
1020
-
1021
- <th>Type</th>
1022
-
1023
-
1024
-
1025
-
1026
-
1027
- <th class="last">Description</th>
1028
- </tr>
1029
- </thead>
1030
-
1031
- <tbody>
1032
-
1033
-
1034
- <tr>
1035
-
1036
- <td class="name"><code>id</code></td>
1037
-
1038
-
1039
- <td class="type">
1040
-
1041
-
1042
- <span class="param-type">int</span>
1043
-
1044
-
1045
-
1046
-
1047
- </td>
1048
-
1049
-
1050
-
1051
-
1052
-
1053
- <td class="description last"><p>ID of the channel.</p></td>
1054
- </tr>
1055
-
1056
-
1057
- </tbody>
1058
- </table>
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
-
1069
-
1070
-
1071
-
1072
-
1073
-
1074
-
1075
- <h5 class="h5-returns">Returns:</h5>
1076
-
1077
-
1078
-
1079
-
1080
- <dl class="param-type">
1081
- <dt>
1082
- Type
1083
- </dt>
1084
- <dd>
1085
-
1086
- <span class="param-type">Promise.&lt;Array.&lt;object>></span>
1087
-
1088
-
1089
-
1090
- </dd>
1091
- </dl>
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
- <h4 class="name" id="_cacheTwitchEmote"><span class="type-signature type-signature-private">(private) </span>_cacheTwitchEmote<span class="signature">(channel_id, data, existing_emote<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="TwitchEmote.html">TwitchEmote</a>}</span></h4>
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
- <dl class="details">
1110
-
1111
- <dt class="tag-description">Description:</dt>
1112
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw twitch emote.</p></li></ul></dd>
1113
-
1114
-
1115
-
1116
- <dt class="tag-source">Source:</dt>
1117
- <dd class="tag-source"><ul class="dummy"><li>
1118
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line107">line 107</a>
1119
- </li></ul></dd>
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
-
1151
- </dl>
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
- <h5 class="h5-parameters">Parameters:</h5>
1166
-
1167
-
1168
- <table class="params">
1169
- <thead>
1170
- <tr>
1171
-
1172
- <th>Name</th>
1173
-
1174
-
1175
- <th>Type</th>
1176
-
1177
-
1178
- <th>Attributes</th>
1179
-
1180
-
1181
-
1182
- <th>Default</th>
1183
-
1184
-
1185
- <th class="last">Description</th>
1186
- </tr>
1187
- </thead>
1188
-
1189
- <tbody>
1190
-
1191
-
1192
- <tr>
1193
-
1194
- <td class="name"><code>channel_id</code></td>
1195
-
1196
-
1197
- <td class="type">
1198
-
1199
-
1200
- <span class="param-type">int</span>
1201
-
1202
-
1203
-
1204
-
1205
- </td>
1206
-
1207
-
1208
- <td class="attributes">
1209
-
1210
-
1211
-
1212
-
1213
-
1214
- </td>
1215
-
1216
-
1217
-
1218
- <td class="default">
1219
-
1220
- </td>
1221
-
1222
-
1223
- <td class="description last"><p>ID of the channel.</p></td>
1224
- </tr>
1225
-
1226
-
1227
-
1228
- <tr>
1229
-
1230
- <td class="name"><code>data</code></td>
1231
-
1232
-
1233
- <td class="type">
1234
-
1235
-
1236
- <span class="param-type">object</span>
1237
-
1238
-
1239
-
1240
-
1241
- </td>
1242
-
1243
-
1244
- <td class="attributes">
1245
-
1246
-
1247
-
1248
-
1249
-
1250
- </td>
1251
-
1252
-
1253
-
1254
- <td class="default">
1255
-
1256
- </td>
1257
-
1258
-
1259
- <td class="description last"><p>Raw data.</p></td>
1260
- </tr>
1261
-
1262
-
1263
-
1264
- <tr>
1265
-
1266
- <td class="name"><code>existing_emote</code></td>
1267
-
1268
-
1269
- <td class="type">
1270
-
1271
-
1272
- <span class="param-type"><a href="TwitchEmote.html">TwitchEmote</a></span>
1273
-
1274
-
1275
-
1276
-
1277
- </td>
1278
-
1279
-
1280
- <td class="attributes">
1281
-
1282
- &lt;optional><br>
1283
-
1284
-
1285
-
1286
-
1287
-
1288
- </td>
1289
-
1290
-
1291
-
1292
- <td class="default">
1293
-
1294
- <code>null</code>
1295
-
1296
- </td>
1297
-
1298
-
1299
- <td class="description last"><p>Existing emote to cache.</p></td>
1300
- </tr>
1301
-
1302
-
1303
- </tbody>
1304
- </table>
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
- <h5 class="h5-returns">Returns:</h5>
1322
-
1323
-
1324
-
1325
-
1326
- <dl class="param-type">
1327
- <dt>
1328
- Type
1329
- </dt>
1330
- <dd>
1331
-
1332
- <span class="param-type"><a href="TwitchEmote.html">TwitchEmote</a></span>
1333
-
1334
-
1335
-
1336
- </dd>
1337
- </dl>
1338
-
1339
-
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
- <h4 class="name" id="_getRawBTTVEmotes"><span class="type-signature type-signature-private">(private) </span>_getRawBTTVEmotes<span class="signature">(id<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;object>>}</span></h4>
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
- <dl class="details">
1356
-
1357
- <dt class="tag-description">Description:</dt>
1358
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw BTTV emotes data for a channel.<br>
1359
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
1360
-
1361
-
1362
-
1363
- <dt class="tag-source">Source:</dt>
1364
- <dd class="tag-source"><ul class="dummy"><li>
1365
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line122">line 122</a>
1366
- </li></ul></dd>
1367
-
1368
-
1369
-
1370
-
1371
-
1372
-
1373
-
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
-
1397
-
1398
- </dl>
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
- <h5 class="h5-parameters">Parameters:</h5>
1413
-
1414
-
1415
- <table class="params">
1416
- <thead>
1417
- <tr>
1418
-
1419
- <th>Name</th>
1420
-
1421
-
1422
- <th>Type</th>
1423
-
1424
-
1425
- <th>Attributes</th>
1426
-
1427
-
1428
-
1429
- <th>Default</th>
1430
-
1431
-
1432
- <th class="last">Description</th>
1433
- </tr>
1434
- </thead>
1435
-
1436
- <tbody>
1437
-
1438
-
1439
- <tr>
1440
-
1441
- <td class="name"><code>id</code></td>
1442
-
1443
-
1444
- <td class="type">
1445
-
1446
-
1447
- <span class="param-type">int</span>
1448
-
1449
-
1450
-
1451
-
1452
- </td>
1453
-
1454
-
1455
- <td class="attributes">
1456
-
1457
- &lt;optional><br>
1458
-
1459
-
1460
-
1461
-
1462
-
1463
- </td>
1464
-
1465
-
1466
-
1467
- <td class="default">
1468
-
1469
- <code>null</code>
1470
-
1471
- </td>
1472
-
1473
-
1474
- <td class="description last"><p>ID of the channel.</p></td>
1475
- </tr>
1476
-
1477
-
1478
- </tbody>
1479
- </table>
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
- <h5 class="h5-returns">Returns:</h5>
1497
-
1498
-
1499
-
1500
-
1501
- <dl class="param-type">
1502
- <dt>
1503
- Type
1504
- </dt>
1505
- <dd>
1506
-
1507
- <span class="param-type">Promise.&lt;Array.&lt;object>></span>
1508
-
1509
-
1510
-
1511
- </dd>
1512
- </dl>
1513
-
1514
-
1515
-
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
- <h4 class="name" id="_cacheBTTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheBTTVEmote<span class="signature">(channel_id, data, existing_emote<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="BTTVEmote.html">BTTVEmote</a>}</span></h4>
1524
-
1525
-
1526
-
1527
-
1528
-
1529
-
1530
- <dl class="details">
1531
-
1532
- <dt class="tag-description">Description:</dt>
1533
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw BTTV emote.</p></li></ul></dd>
1534
-
1535
-
1536
-
1537
- <dt class="tag-source">Source:</dt>
1538
- <dd class="tag-source"><ul class="dummy"><li>
1539
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line143">line 143</a>
1540
- </li></ul></dd>
1541
-
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
-
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
- </dl>
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
- <h5 class="h5-parameters">Parameters:</h5>
1587
-
1588
-
1589
- <table class="params">
1590
- <thead>
1591
- <tr>
1592
-
1593
- <th>Name</th>
1594
-
1595
-
1596
- <th>Type</th>
1597
-
1598
-
1599
- <th>Attributes</th>
1600
-
1601
-
1602
-
1603
- <th>Default</th>
1604
-
1605
-
1606
- <th class="last">Description</th>
1607
- </tr>
1608
- </thead>
1609
-
1610
- <tbody>
1611
-
1612
-
1613
- <tr>
1614
-
1615
- <td class="name"><code>channel_id</code></td>
1616
-
1617
-
1618
- <td class="type">
1619
-
1620
-
1621
- <span class="param-type">int</span>
1622
-
1623
-
1624
-
1625
-
1626
- </td>
1627
-
1628
-
1629
- <td class="attributes">
1630
-
1631
-
1632
-
1633
-
1634
-
1635
- </td>
1636
-
1637
-
1638
-
1639
- <td class="default">
1640
-
1641
- </td>
1642
-
1643
-
1644
- <td class="description last"><p>ID of the channel.</p></td>
1645
- </tr>
1646
-
1647
-
1648
-
1649
- <tr>
1650
-
1651
- <td class="name"><code>data</code></td>
1652
-
1653
-
1654
- <td class="type">
1655
-
1656
-
1657
- <span class="param-type">object</span>
1658
-
1659
-
1660
-
1661
-
1662
- </td>
1663
-
1664
-
1665
- <td class="attributes">
1666
-
1667
-
1668
-
1669
-
1670
-
1671
- </td>
1672
-
1673
-
1674
-
1675
- <td class="default">
1676
-
1677
- </td>
1678
-
1679
-
1680
- <td class="description last"><p>Raw data.</p></td>
1681
- </tr>
1682
-
1683
-
1684
-
1685
- <tr>
1686
-
1687
- <td class="name"><code>existing_emote</code></td>
1688
-
1689
-
1690
- <td class="type">
1691
-
1692
-
1693
- <span class="param-type"><a href="BTTVEmote.html">BTTVEmote</a></span>
1694
-
1695
-
1696
-
1697
-
1698
- </td>
1699
-
1700
-
1701
- <td class="attributes">
1702
-
1703
- &lt;optional><br>
1704
-
1705
-
1706
-
1707
-
1708
-
1709
- </td>
1710
-
1711
-
1712
-
1713
- <td class="default">
1714
-
1715
- <code>null</code>
1716
-
1717
- </td>
1718
-
1719
-
1720
- <td class="description last"><p>Existing emote to cache.</p></td>
1721
- </tr>
1722
-
1723
-
1724
- </tbody>
1725
- </table>
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
-
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
- <h5 class="h5-returns">Returns:</h5>
1743
-
1744
-
1745
-
1746
-
1747
- <dl class="param-type">
1748
- <dt>
1749
- Type
1750
- </dt>
1751
- <dd>
1752
-
1753
- <span class="param-type"><a href="BTTVEmote.html">BTTVEmote</a></span>
1754
-
1755
-
1756
-
1757
- </dd>
1758
- </dl>
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
- <h4 class="name" id="_getRawFFZEmoteSet"><span class="type-signature type-signature-private">(private) </span>_getRawFFZEmoteSet<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;object>>}</span></h4>
1770
-
1771
-
1772
-
1773
-
1774
-
1775
-
1776
- <dl class="details">
1777
-
1778
- <dt class="tag-description">Description:</dt>
1779
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw FFZ emote data from a set.</p></li></ul></dd>
1780
-
1781
-
1782
-
1783
- <dt class="tag-source">Source:</dt>
1784
- <dd class="tag-source"><ul class="dummy"><li>
1785
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line157">line 157</a>
1786
- </li></ul></dd>
1787
-
1788
-
1789
-
1790
-
1791
-
1792
-
1793
-
1794
-
1795
-
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
-
1809
-
1810
-
1811
-
1812
-
1813
-
1814
-
1815
-
1816
-
1817
-
1818
- </dl>
1819
-
1820
-
1821
-
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
-
1830
-
1831
-
1832
- <h5 class="h5-parameters">Parameters:</h5>
1833
-
1834
-
1835
- <table class="params">
1836
- <thead>
1837
- <tr>
1838
-
1839
- <th>Name</th>
1840
-
1841
-
1842
- <th>Type</th>
1843
-
1844
-
1845
-
1846
-
1847
-
1848
- <th class="last">Description</th>
1849
- </tr>
1850
- </thead>
1851
-
1852
- <tbody>
1853
-
1854
-
1855
- <tr>
1856
-
1857
- <td class="name"><code>id</code></td>
1858
-
1859
-
1860
- <td class="type">
1861
-
1862
-
1863
- <span class="param-type">int</span>
1864
-
1865
-
1866
-
1867
-
1868
- </td>
1869
-
1870
-
1871
-
1872
-
1873
-
1874
- <td class="description last"><p>ID of the set.</p></td>
1875
- </tr>
1876
-
1877
-
1878
- </tbody>
1879
- </table>
1880
-
1881
-
1882
-
1883
-
1884
-
1885
-
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
-
1894
-
1895
-
1896
- <h5 class="h5-returns">Returns:</h5>
1897
-
1898
-
1899
-
1900
-
1901
- <dl class="param-type">
1902
- <dt>
1903
- Type
1904
- </dt>
1905
- <dd>
1906
-
1907
- <span class="param-type">Promise.&lt;Array.&lt;object>></span>
1908
-
1909
-
1910
-
1911
- </dd>
1912
- </dl>
1913
-
1914
-
1915
-
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
-
1923
- <h4 class="name" id="_getRawFFZEmotes"><span class="type-signature type-signature-private">(private) </span>_getRawFFZEmotes<span class="signature">(id)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;object>>}</span></h4>
1924
-
1925
-
1926
-
1927
-
1928
-
1929
-
1930
- <dl class="details">
1931
-
1932
- <dt class="tag-description">Description:</dt>
1933
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw FFZ emotes data for a channel.</p></li></ul></dd>
1934
-
1935
-
1936
-
1937
- <dt class="tag-source">Source:</dt>
1938
- <dd class="tag-source"><ul class="dummy"><li>
1939
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line171">line 171</a>
1940
- </li></ul></dd>
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
- </dl>
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
- <h5 class="h5-parameters">Parameters:</h5>
1987
-
1988
-
1989
- <table class="params">
1990
- <thead>
1991
- <tr>
1992
-
1993
- <th>Name</th>
1994
-
1995
-
1996
- <th>Type</th>
1997
-
1998
-
1999
-
2000
-
2001
-
2002
- <th class="last">Description</th>
2003
- </tr>
2004
- </thead>
2005
-
2006
- <tbody>
2007
-
2008
-
2009
- <tr>
2010
-
2011
- <td class="name"><code>id</code></td>
2012
-
2013
-
2014
- <td class="type">
2015
-
2016
-
2017
- <span class="param-type">int</span>
2018
-
2019
-
2020
-
2021
-
2022
- </td>
2023
-
2024
-
2025
-
2026
-
2027
-
2028
- <td class="description last"><p>ID of the channel.</p></td>
2029
- </tr>
2030
-
2031
-
2032
- </tbody>
2033
- </table>
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
-
2041
-
2042
-
2043
-
2044
-
2045
-
2046
-
2047
-
2048
-
2049
-
2050
- <h5 class="h5-returns">Returns:</h5>
2051
-
2052
-
2053
-
2054
-
2055
- <dl class="param-type">
2056
- <dt>
2057
- Type
2058
- </dt>
2059
- <dd>
2060
-
2061
- <span class="param-type">Promise.&lt;Array.&lt;object>></span>
2062
-
2063
-
2064
-
2065
- </dd>
2066
- </dl>
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
-
2074
-
2075
-
2076
-
2077
- <h4 class="name" id="_cacheFFZEmote"><span class="type-signature type-signature-private">(private) </span>_cacheFFZEmote<span class="signature">(channel_id, data, existing_emote<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="FFZEmote.html">FFZEmote</a>}</span></h4>
2078
-
2079
-
2080
-
2081
-
2082
-
2083
-
2084
- <dl class="details">
2085
-
2086
- <dt class="tag-description">Description:</dt>
2087
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw FFZ emote.</p></li></ul></dd>
2088
-
2089
-
2090
-
2091
- <dt class="tag-source">Source:</dt>
2092
- <dd class="tag-source"><ul class="dummy"><li>
2093
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line193">line 193</a>
2094
- </li></ul></dd>
2095
-
2096
-
2097
-
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
-
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
-
2113
-
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
- </dl>
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
- <h5 class="h5-parameters">Parameters:</h5>
2141
-
2142
-
2143
- <table class="params">
2144
- <thead>
2145
- <tr>
2146
-
2147
- <th>Name</th>
2148
-
2149
-
2150
- <th>Type</th>
2151
-
2152
-
2153
- <th>Attributes</th>
2154
-
2155
-
2156
-
2157
- <th>Default</th>
2158
-
2159
-
2160
- <th class="last">Description</th>
2161
- </tr>
2162
- </thead>
2163
-
2164
- <tbody>
2165
-
2166
-
2167
- <tr>
2168
-
2169
- <td class="name"><code>channel_id</code></td>
2170
-
2171
-
2172
- <td class="type">
2173
-
2174
-
2175
- <span class="param-type">int</span>
2176
-
2177
-
2178
-
2179
-
2180
- </td>
2181
-
2182
-
2183
- <td class="attributes">
2184
-
2185
-
2186
-
2187
-
2188
-
2189
- </td>
2190
-
2191
-
2192
-
2193
- <td class="default">
2194
-
2195
- </td>
2196
-
2197
-
2198
- <td class="description last"><p>ID of the channel.</p></td>
2199
- </tr>
2200
-
2201
-
2202
-
2203
- <tr>
2204
-
2205
- <td class="name"><code>data</code></td>
2206
-
2207
-
2208
- <td class="type">
2209
-
2210
-
2211
- <span class="param-type">object</span>
2212
-
2213
-
2214
-
2215
-
2216
- </td>
2217
-
2218
-
2219
- <td class="attributes">
2220
-
2221
-
2222
-
2223
-
2224
-
2225
- </td>
2226
-
2227
-
2228
-
2229
- <td class="default">
2230
-
2231
- </td>
2232
-
2233
-
2234
- <td class="description last"><p>Raw data.</p></td>
2235
- </tr>
2236
-
2237
-
2238
-
2239
- <tr>
2240
-
2241
- <td class="name"><code>existing_emote</code></td>
2242
-
2243
-
2244
- <td class="type">
2245
-
2246
-
2247
- <span class="param-type"><a href="FFZEmote.html">FFZEmote</a></span>
2248
-
2249
-
2250
-
2251
-
2252
- </td>
2253
-
2254
-
2255
- <td class="attributes">
2256
-
2257
- &lt;optional><br>
2258
-
2259
-
2260
-
2261
-
2262
-
2263
- </td>
2264
-
2265
-
2266
-
2267
- <td class="default">
2268
-
2269
- <code>null</code>
2270
-
2271
- </td>
2272
-
2273
-
2274
- <td class="description last"><p>Existing emote to cache.</p></td>
2275
- </tr>
2276
-
2277
-
2278
- </tbody>
2279
- </table>
2280
-
2281
-
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
-
2294
-
2295
-
2296
- <h5 class="h5-returns">Returns:</h5>
2297
-
2298
-
2299
-
2300
-
2301
- <dl class="param-type">
2302
- <dt>
2303
- Type
2304
- </dt>
2305
- <dd>
2306
-
2307
- <span class="param-type"><a href="FFZEmote.html">FFZEmote</a></span>
2308
-
2309
-
2310
-
2311
- </dd>
2312
- </dl>
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
-
2323
- <h4 class="name" id="_getRawSevenTVEmotes"><span class="type-signature type-signature-private">(private) </span>_getRawSevenTVEmotes<span class="signature">(id<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;Array.&lt;object>>}</span></h4>
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
- <dl class="details">
2331
-
2332
- <dt class="tag-description">Description:</dt>
2333
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw 7TV emotes data for a channel.</p></li></ul></dd>
2334
-
2335
-
2336
-
2337
- <dt class="tag-source">Source:</dt>
2338
- <dd class="tag-source"><ul class="dummy"><li>
2339
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line207">line 207</a>
2340
- </li></ul></dd>
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
-
2370
-
2371
-
2372
- </dl>
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
-
2386
- <h5 class="h5-parameters">Parameters:</h5>
2387
-
2388
-
2389
- <table class="params">
2390
- <thead>
2391
- <tr>
2392
-
2393
- <th>Name</th>
2394
-
2395
-
2396
- <th>Type</th>
2397
-
2398
-
2399
- <th>Attributes</th>
2400
-
2401
-
2402
-
2403
- <th>Default</th>
2404
-
2405
-
2406
- <th class="last">Description</th>
2407
- </tr>
2408
- </thead>
2409
-
2410
- <tbody>
2411
-
2412
-
2413
- <tr>
2414
-
2415
- <td class="name"><code>id</code></td>
2416
-
2417
-
2418
- <td class="type">
2419
-
2420
-
2421
- <span class="param-type">int</span>
2422
-
2423
-
2424
-
2425
-
2426
- </td>
2427
-
2428
-
2429
- <td class="attributes">
2430
-
2431
- &lt;optional><br>
2432
-
2433
-
2434
-
2435
-
2436
-
2437
- </td>
2438
-
2439
-
2440
-
2441
- <td class="default">
2442
-
2443
- <code>null</code>
2444
-
2445
- </td>
2446
-
2447
-
2448
- <td class="description last"><p>ID of the channel.</p></td>
2449
- </tr>
2450
-
2451
-
2452
- </tbody>
2453
- </table>
2454
-
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
-
2466
-
2467
-
2468
-
2469
-
2470
- <h5 class="h5-returns">Returns:</h5>
2471
-
2472
-
2473
-
2474
-
2475
- <dl class="param-type">
2476
- <dt>
2477
- Type
2478
- </dt>
2479
- <dd>
2480
-
2481
- <span class="param-type">Promise.&lt;Array.&lt;object>></span>
2482
-
2483
-
2484
-
2485
- </dd>
2486
- </dl>
2487
-
2488
-
2489
-
2490
-
2491
-
2492
-
2493
-
2494
-
2495
-
2496
-
2497
- <h4 class="name" id="_cacheSevenTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheSevenTVEmote<span class="signature">(channel_id, data, format, existing_emote<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="SevenTVEmote.html">SevenTVEmote</a>}</span></h4>
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
- <dl class="details">
2505
-
2506
- <dt class="tag-description">Description:</dt>
2507
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw 7TV emote.</p></li></ul></dd>
2508
-
2509
-
2510
-
2511
- <dt class="tag-source">Source:</dt>
2512
- <dd class="tag-source"><ul class="dummy"><li>
2513
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line224">line 224</a>
2514
- </li></ul></dd>
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
-
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
- </dl>
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
-
2554
-
2555
-
2556
-
2557
-
2558
-
2559
-
2560
- <h5 class="h5-parameters">Parameters:</h5>
2561
-
2562
-
2563
- <table class="params">
2564
- <thead>
2565
- <tr>
2566
-
2567
- <th>Name</th>
2568
-
2569
-
2570
- <th>Type</th>
2571
-
2572
-
2573
- <th>Attributes</th>
2574
-
2575
-
2576
-
2577
- <th>Default</th>
2578
-
2579
-
2580
- <th class="last">Description</th>
2581
- </tr>
2582
- </thead>
2583
-
2584
- <tbody>
2585
-
2586
-
2587
- <tr>
2588
-
2589
- <td class="name"><code>channel_id</code></td>
2590
-
2591
-
2592
- <td class="type">
2593
-
2594
-
2595
- <span class="param-type">int</span>
2596
-
2597
-
2598
-
2599
-
2600
- </td>
2601
-
2602
-
2603
- <td class="attributes">
2604
-
2605
-
2606
-
2607
-
2608
-
2609
- </td>
2610
-
2611
-
2612
-
2613
- <td class="default">
2614
-
2615
- </td>
2616
-
2617
-
2618
- <td class="description last"><p>ID of the channel.</p></td>
2619
- </tr>
2620
-
2621
-
2622
-
2623
- <tr>
2624
-
2625
- <td class="name"><code>data</code></td>
2626
-
2627
-
2628
- <td class="type">
2629
-
2630
-
2631
- <span class="param-type">object</span>
2632
-
2633
-
2634
-
2635
-
2636
- </td>
2637
-
2638
-
2639
- <td class="attributes">
2640
-
2641
-
2642
-
2643
-
2644
-
2645
- </td>
2646
-
2647
-
2648
-
2649
- <td class="default">
2650
-
2651
- </td>
2652
-
2653
-
2654
- <td class="description last"><p>Raw data.</p></td>
2655
- </tr>
2656
-
2657
-
2658
-
2659
- <tr>
2660
-
2661
- <td class="name"><code>format</code></td>
2662
-
2663
-
2664
- <td class="type">
2665
-
2666
-
2667
- <span class="param-type">string</span>
2668
-
2669
-
2670
-
2671
-
2672
- </td>
2673
-
2674
-
2675
- <td class="attributes">
2676
-
2677
-
2678
-
2679
-
2680
-
2681
- </td>
2682
-
2683
-
2684
-
2685
- <td class="default">
2686
-
2687
- </td>
2688
-
2689
-
2690
- <td class="description last"><p>The type file format to use (webp/avif).</p></td>
2691
- </tr>
2692
-
2693
-
2694
-
2695
- <tr>
2696
-
2697
- <td class="name"><code>existing_emote</code></td>
2698
-
2699
-
2700
- <td class="type">
2701
-
2702
-
2703
- <span class="param-type"><a href="SevenTVEmote.html">SevenTVEmote</a></span>
2704
-
2705
-
2706
-
2707
-
2708
- </td>
2709
-
2710
-
2711
- <td class="attributes">
2712
-
2713
- &lt;optional><br>
2714
-
2715
-
2716
-
2717
-
2718
-
2719
- </td>
2720
-
2721
-
2722
-
2723
- <td class="default">
2724
-
2725
- <code>null</code>
2726
-
2727
- </td>
2728
-
2729
-
2730
- <td class="description last"><p>Existing emote to cache.</p></td>
2731
- </tr>
2732
-
2733
-
2734
- </tbody>
2735
- </table>
2736
-
2737
-
2738
-
2739
-
2740
-
2741
-
2742
-
2743
-
2744
-
2745
-
2746
-
2747
-
2748
-
2749
-
2750
-
2751
-
2752
- <h5 class="h5-returns">Returns:</h5>
2753
-
2754
-
2755
-
2756
-
2757
- <dl class="param-type">
2758
- <dt>
2759
- Type
2760
- </dt>
2761
- <dd>
2762
-
2763
- <span class="param-type"><a href="SevenTVEmote.html">SevenTVEmote</a></span>
2764
-
2765
-
2766
-
2767
- </dd>
2768
- </dl>
2769
-
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
-
2778
-
2779
- <h4 class="name" id="fetchTwitchEmotes"><span class="type-signature"></span>fetchTwitchEmotes<span class="signature">(channel<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="TwitchEmote.html">TwitchEmote</a>>>}</span></h4>
2780
-
2781
-
2782
-
2783
-
2784
-
2785
-
2786
- <dl class="details">
2787
-
2788
- <dt class="tag-description">Description:</dt>
2789
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the Twitch emotes for a channel.<br>
2790
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
2791
-
2792
-
2793
-
2794
- <dt class="tag-source">Source:</dt>
2795
- <dd class="tag-source"><ul class="dummy"><li>
2796
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line238">line 238</a>
2797
- </li></ul></dd>
2798
-
2799
-
2800
-
2801
-
2802
-
2803
-
2804
-
2805
-
2806
-
2807
-
2808
-
2809
-
2810
-
2811
-
2812
-
2813
-
2814
-
2815
-
2816
-
2817
-
2818
-
2819
-
2820
-
2821
-
2822
-
2823
-
2824
-
2825
-
2826
-
2827
-
2828
-
2829
- </dl>
2830
-
2831
-
2832
-
2833
-
2834
-
2835
-
2836
-
2837
-
2838
-
2839
-
2840
-
2841
-
2842
-
2843
- <h5 class="h5-parameters">Parameters:</h5>
2844
-
2845
-
2846
- <table class="params">
2847
- <thead>
2848
- <tr>
2849
-
2850
- <th>Name</th>
2851
-
2852
-
2853
- <th>Type</th>
2854
-
2855
-
2856
- <th>Attributes</th>
2857
-
2858
-
2859
-
2860
- <th>Default</th>
2861
-
2862
-
2863
- <th class="last">Description</th>
2864
- </tr>
2865
- </thead>
2866
-
2867
- <tbody>
2868
-
2869
-
2870
- <tr>
2871
-
2872
- <td class="name"><code>channel</code></td>
2873
-
2874
-
2875
- <td class="type">
2876
-
2877
-
2878
- <span class="param-type">int</span>
2879
-
2880
-
2881
-
2882
-
2883
- </td>
2884
-
2885
-
2886
- <td class="attributes">
2887
-
2888
- &lt;optional><br>
2889
-
2890
-
2891
-
2892
-
2893
-
2894
- </td>
2895
-
2896
-
2897
-
2898
- <td class="default">
2899
-
2900
- <code>null</code>
2901
-
2902
- </td>
2903
-
2904
-
2905
- <td class="description last"><p>ID of the channel.</p></td>
2906
- </tr>
2907
-
2908
-
2909
- </tbody>
2910
- </table>
2911
-
2912
-
2913
-
2914
-
2915
-
2916
-
2917
-
2918
-
2919
-
2920
-
2921
-
2922
-
2923
-
2924
-
2925
-
2926
-
2927
- <h5 class="h5-returns">Returns:</h5>
2928
-
2929
-
2930
-
2931
-
2932
- <dl class="param-type">
2933
- <dt>
2934
- Type
2935
- </dt>
2936
- <dd>
2937
-
2938
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="TwitchEmote.html">TwitchEmote</a>>></span>
2939
-
2940
-
2941
-
2942
- </dd>
2943
- </dl>
2944
-
2945
-
2946
-
2947
-
2948
-
2949
-
2950
-
2951
-
2952
-
2953
-
2954
- <h4 class="name" id="fetchBTTVEmotes"><span class="type-signature"></span>fetchBTTVEmotes<span class="signature">(channel<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="BTTVEmote.html">BTTVEmote</a>>>}</span></h4>
2955
-
2956
-
2957
-
2958
-
2959
-
2960
-
2961
- <dl class="details">
2962
-
2963
- <dt class="tag-description">Description:</dt>
2964
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the BTTV emotes for a channel.<br>
2965
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
2966
-
2967
-
2968
-
2969
- <dt class="tag-source">Source:</dt>
2970
- <dd class="tag-source"><ul class="dummy"><li>
2971
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line256">line 256</a>
2972
- </li></ul></dd>
2973
-
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
-
2984
-
2985
-
2986
-
2987
-
2988
-
2989
-
2990
-
2991
-
2992
-
2993
-
2994
-
2995
-
2996
-
2997
-
2998
-
2999
-
3000
-
3001
-
3002
-
3003
-
3004
- </dl>
3005
-
3006
-
3007
-
3008
-
3009
-
3010
-
3011
-
3012
-
3013
-
3014
-
3015
-
3016
-
3017
-
3018
- <h5 class="h5-parameters">Parameters:</h5>
3019
-
3020
-
3021
- <table class="params">
3022
- <thead>
3023
- <tr>
3024
-
3025
- <th>Name</th>
3026
-
3027
-
3028
- <th>Type</th>
3029
-
3030
-
3031
- <th>Attributes</th>
3032
-
3033
-
3034
-
3035
- <th>Default</th>
3036
-
3037
-
3038
- <th class="last">Description</th>
3039
- </tr>
3040
- </thead>
3041
-
3042
- <tbody>
3043
-
3044
-
3045
- <tr>
3046
-
3047
- <td class="name"><code>channel</code></td>
3048
-
3049
-
3050
- <td class="type">
3051
-
3052
-
3053
- <span class="param-type">int</span>
3054
-
3055
-
3056
-
3057
-
3058
- </td>
3059
-
3060
-
3061
- <td class="attributes">
3062
-
3063
- &lt;optional><br>
3064
-
3065
-
3066
-
3067
-
3068
-
3069
- </td>
3070
-
3071
-
3072
-
3073
- <td class="default">
3074
-
3075
- <code>null</code>
3076
-
3077
- </td>
3078
-
3079
-
3080
- <td class="description last"><p>ID of the channel.</p></td>
3081
- </tr>
3082
-
3083
-
3084
- </tbody>
3085
- </table>
3086
-
3087
-
3088
-
3089
-
3090
-
3091
-
3092
-
3093
-
3094
-
3095
-
3096
-
3097
-
3098
-
3099
-
3100
-
3101
-
3102
- <h5 class="h5-returns">Returns:</h5>
3103
-
3104
-
3105
-
3106
-
3107
- <dl class="param-type">
3108
- <dt>
3109
- Type
3110
- </dt>
3111
- <dd>
3112
-
3113
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="BTTVEmote.html">BTTVEmote</a>>></span>
3114
-
3115
-
3116
-
3117
- </dd>
3118
- </dl>
3119
-
3120
-
3121
-
3122
-
3123
-
3124
-
3125
-
3126
-
3127
-
3128
-
3129
- <h4 class="name" id="fetchFFZEmotes"><span class="type-signature type-signature-async">(async) </span>fetchFFZEmotes<span class="signature">(channel<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>>}</span></h4>
3130
-
3131
-
3132
-
3133
-
3134
-
3135
-
3136
- <dl class="details">
3137
-
3138
- <dt class="tag-description">Description:</dt>
3139
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the FFZ emotes for a channel.</p></li></ul></dd>
3140
-
3141
-
3142
-
3143
- <dt class="tag-source">Source:</dt>
3144
- <dd class="tag-source"><ul class="dummy"><li>
3145
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line271">line 271</a>
3146
- </li></ul></dd>
3147
-
3148
-
3149
-
3150
-
3151
-
3152
-
3153
-
3154
-
3155
-
3156
-
3157
-
3158
-
3159
-
3160
-
3161
-
3162
-
3163
-
3164
-
3165
-
3166
-
3167
-
3168
-
3169
-
3170
-
3171
-
3172
-
3173
-
3174
-
3175
-
3176
-
3177
-
3178
- </dl>
3179
-
3180
-
3181
-
3182
-
3183
-
3184
-
3185
-
3186
-
3187
-
3188
-
3189
-
3190
-
3191
-
3192
- <h5 class="h5-parameters">Parameters:</h5>
3193
-
3194
-
3195
- <table class="params">
3196
- <thead>
3197
- <tr>
3198
-
3199
- <th>Name</th>
3200
-
3201
-
3202
- <th>Type</th>
3203
-
3204
-
3205
- <th>Attributes</th>
3206
-
3207
-
3208
-
3209
- <th>Default</th>
3210
-
3211
-
3212
- <th class="last">Description</th>
3213
- </tr>
3214
- </thead>
3215
-
3216
- <tbody>
3217
-
3218
-
3219
- <tr>
3220
-
3221
- <td class="name"><code>channel</code></td>
3222
-
3223
-
3224
- <td class="type">
3225
-
3226
-
3227
- <span class="param-type">int</span>
3228
-
3229
-
3230
-
3231
-
3232
- </td>
3233
-
3234
-
3235
- <td class="attributes">
3236
-
3237
- &lt;optional><br>
3238
-
3239
-
3240
-
3241
-
3242
-
3243
- </td>
3244
-
3245
-
3246
-
3247
- <td class="default">
3248
-
3249
- <code>null</code>
3250
-
3251
- </td>
3252
-
3253
-
3254
- <td class="description last"><p>ID of the channel.</p></td>
3255
- </tr>
3256
-
3257
-
3258
- </tbody>
3259
- </table>
3260
-
3261
-
3262
-
3263
-
3264
-
3265
-
3266
-
3267
-
3268
-
3269
-
3270
-
3271
-
3272
-
3273
-
3274
-
3275
-
3276
- <h5 class="h5-returns">Returns:</h5>
3277
-
3278
-
3279
-
3280
-
3281
- <dl class="param-type">
3282
- <dt>
3283
- Type
3284
- </dt>
3285
- <dd>
3286
-
3287
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>></span>
3288
-
3289
-
3290
-
3291
- </dd>
3292
- </dl>
3293
-
3294
-
3295
-
3296
-
3297
-
3298
-
3299
-
3300
-
3301
-
3302
-
3303
- <h4 class="name" id="fetchSevenTVEmotes"><span class="type-signature"></span>fetchSevenTVEmotes<span class="signature">(channel<span class="signature-attributes">opt</span>, format<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="SevenTVEmote.html">SevenTVEmote</a>>>}</span></h4>
3304
-
3305
-
3306
-
3307
-
3308
-
3309
-
3310
- <dl class="details">
3311
-
3312
- <dt class="tag-description">Description:</dt>
3313
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the 7TV emotes for a channel.</p></li></ul></dd>
3314
-
3315
-
3316
-
3317
- <dt class="tag-source">Source:</dt>
3318
- <dd class="tag-source"><ul class="dummy"><li>
3319
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line309">line 309</a>
3320
- </li></ul></dd>
3321
-
3322
-
3323
-
3324
-
3325
-
3326
-
3327
-
3328
-
3329
-
3330
-
3331
-
3332
-
3333
-
3334
-
3335
-
3336
-
3337
-
3338
-
3339
-
3340
-
3341
-
3342
-
3343
-
3344
-
3345
-
3346
-
3347
-
3348
-
3349
-
3350
-
3351
-
3352
- </dl>
3353
-
3354
-
3355
-
3356
-
3357
-
3358
-
3359
-
3360
-
3361
-
3362
-
3363
-
3364
-
3365
-
3366
- <h5 class="h5-parameters">Parameters:</h5>
3367
-
3368
-
3369
- <table class="params">
3370
- <thead>
3371
- <tr>
3372
-
3373
- <th>Name</th>
3374
-
3375
-
3376
- <th>Type</th>
3377
-
3378
-
3379
- <th>Attributes</th>
3380
-
3381
-
3382
-
3383
- <th>Default</th>
3384
-
3385
-
3386
- <th class="last">Description</th>
3387
- </tr>
3388
- </thead>
3389
-
3390
- <tbody>
3391
-
3392
-
3393
- <tr>
3394
-
3395
- <td class="name"><code>channel</code></td>
3396
-
3397
-
3398
- <td class="type">
3399
-
3400
-
3401
- <span class="param-type">int</span>
3402
-
3403
-
3404
-
3405
-
3406
- </td>
3407
-
3408
-
3409
- <td class="attributes">
3410
-
3411
- &lt;optional><br>
3412
-
3413
-
3414
-
3415
-
3416
-
3417
- </td>
3418
-
3419
-
3420
-
3421
- <td class="default">
3422
-
3423
- <code>null</code>
3424
-
3425
- </td>
3426
-
3427
-
3428
- <td class="description last"><p>ID of the channel.</p></td>
3429
- </tr>
3430
-
3431
-
3432
-
3433
- <tr>
3434
-
3435
- <td class="name"><code>format</code></td>
3436
-
3437
-
3438
- <td class="type">
3439
-
3440
-
3441
- <span class="param-type">'webp'</span>
3442
- |
3443
-
3444
- <span class="param-type">'avif'</span>
3445
-
3446
-
3447
-
3448
-
3449
- </td>
3450
-
3451
-
3452
- <td class="attributes">
3453
-
3454
- &lt;optional><br>
3455
-
3456
-
3457
-
3458
-
3459
-
3460
- </td>
3461
-
3462
-
3463
-
3464
- <td class="default">
3465
-
3466
- <code>'webp'</code>
3467
-
3468
- </td>
3469
-
3470
-
3471
- <td class="description last"><p>The type file format to use (webp/avif).</p></td>
3472
- </tr>
3473
-
3474
-
3475
- </tbody>
3476
- </table>
3477
-
3478
-
3479
-
3480
-
3481
-
3482
-
3483
-
3484
-
3485
-
3486
-
3487
-
3488
-
3489
-
3490
-
3491
-
3492
-
3493
- <h5 class="h5-returns">Returns:</h5>
3494
-
3495
-
3496
-
3497
-
3498
- <dl class="param-type">
3499
- <dt>
3500
- Type
3501
- </dt>
3502
- <dd>
3503
-
3504
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="SevenTVEmote.html">SevenTVEmote</a>>></span>
3505
-
3506
-
3507
-
3508
- </dd>
3509
- </dl>
3510
-
3511
-
3512
-
3513
-
3514
-
3515
-
3516
-
3517
-
3518
-
3519
-
3520
- <h4 class="name" id="fromObject"><span class="type-signature"></span>fromObject<span class="signature">(emotesArray<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="Emote.html">Emote</a>>}</span></h4>
3521
-
3522
-
3523
-
3524
-
3525
-
3526
-
3527
- <dl class="details">
3528
-
3529
- <dt class="tag-description">Description:</dt>
3530
- <dd class="tag-description"><ul class="dummy"><li><p>Converts emote Objects to emotes</p></li></ul></dd>
3531
-
3532
-
3533
-
3534
- <dt class="tag-source">Source:</dt>
3535
- <dd class="tag-source"><ul class="dummy"><li>
3536
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line333">line 333</a>
3537
- </li></ul></dd>
3538
-
3539
-
3540
-
3541
-
3542
-
3543
-
3544
-
3545
-
3546
-
3547
-
3548
-
3549
-
3550
-
3551
-
3552
-
3553
-
3554
-
3555
-
3556
-
3557
-
3558
-
3559
-
3560
-
3561
-
3562
-
3563
-
3564
-
3565
-
3566
-
3567
-
3568
-
3569
- </dl>
3570
-
3571
-
3572
-
3573
-
3574
-
3575
-
3576
-
3577
-
3578
-
3579
-
3580
-
3581
-
3582
-
3583
- <h5 class="h5-parameters">Parameters:</h5>
3584
-
3585
-
3586
- <table class="params">
3587
- <thead>
3588
- <tr>
3589
-
3590
- <th>Name</th>
3591
-
3592
-
3593
- <th>Type</th>
3594
-
3595
-
3596
- <th>Attributes</th>
3597
-
3598
-
3599
-
3600
-
3601
- <th class="last">Description</th>
3602
- </tr>
3603
- </thead>
3604
-
3605
- <tbody>
3606
-
3607
-
3608
- <tr>
3609
-
3610
- <td class="name"><code>emotesArray</code></td>
3611
-
3612
-
3613
- <td class="type">
3614
-
3615
-
3616
- <span class="param-type">object</span>
3617
-
3618
-
3619
-
3620
-
3621
- </td>
3622
-
3623
-
3624
- <td class="attributes">
3625
-
3626
- &lt;optional><br>
3627
-
3628
-
3629
-
3630
-
3631
-
3632
- </td>
3633
-
3634
-
3635
-
3636
-
3637
- <td class="description last"><p>An array of emote objects</p></td>
3638
- </tr>
3639
-
3640
-
3641
- </tbody>
3642
- </table>
3643
-
3644
-
3645
-
3646
-
3647
-
3648
-
3649
-
3650
-
3651
-
3652
-
3653
-
3654
-
3655
-
3656
-
3657
- <h5 class="h5-throws">Throws:</h5>
3658
-
3659
-
3660
-
3661
- <dl>
3662
- <dt>
3663
- <div class="param-desc usertext">
3664
- <p>When an emote has an unknown type.</p>
3665
- </div>
3666
- </dt>
3667
- <dd></dd>
3668
- <dt>
3669
- <dl class="param-type">
3670
- <dt>
3671
- Type
3672
- </dt>
3673
- <dd>
3674
-
3675
- <span class="param-type">TypeError</span>
3676
-
3677
-
3678
-
3679
- </dd>
3680
- </dl>
3681
- </dt>
3682
- <dd></dd>
3683
- </dl>
3684
-
3685
-
3686
-
3687
-
3688
-
3689
- <h5 class="h5-returns">Returns:</h5>
3690
-
3691
-
3692
-
3693
-
3694
- <dl class="param-type">
3695
- <dt>
3696
- Type
3697
- </dt>
3698
- <dd>
3699
-
3700
- <span class="param-type">Array.&lt;<a href="Emote.html">Emote</a>></span>
3701
-
3702
-
3703
-
3704
- </dd>
3705
- </dl>
3706
-
3707
-
3708
-
3709
-
3710
-
3711
-
3712
-
3713
-
3714
-
3715
-
3716
-
3717
- </article>
3718
-
3719
- </section>
3720
-
3721
-
3722
-
3723
-
3724
-
3725
-
3726
- </div>
3727
-
3728
- <br class="clear">
3729
-
3730
- <footer>
3731
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3732
- </footer>
3733
-
3734
- <script>prettyPrint();</script>
3735
- <script src="scripts/polyfill.js"></script>
3736
- <script src="scripts/linenumber.js"></script>
3737
-
3738
-
3739
-
3740
- </body>
3741
- </html>