@mkody/twitch-emoticons 2.6.1 → 2.6.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.
@@ -1,2695 +1,2695 @@
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><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
-
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)</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#line23">line 23</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
- </tbody>
201
- </table>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
- </div>
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
- <h3 class="subsection-title">Members</h3>
239
-
240
-
241
-
242
- <h4 class="name" id="apiClient"><span class="type-signature"></span>apiClient<span class="type-signature"></span></h4>
243
-
244
-
245
-
246
-
247
-
248
- <dl class="details">
249
-
250
- <dt class="tag-description">Description:</dt>
251
- <dd class="tag-description"><ul class="dummy"><li><p>Twitch api client.</p></li></ul></dd>
252
-
253
-
254
-
255
- <dt class="tag-source">Source:</dt>
256
- <dd class="tag-source"><ul class="dummy"><li>
257
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line30">line 30</a>
258
- </li></ul></dd>
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
- </dl>
291
-
292
-
293
-
294
-
295
-
296
- <div class="description usertext">
297
- <p>Twitch api client.</p>
298
- </div>
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
- <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>
310
-
311
-
312
-
313
-
314
-
315
- <dl class="details">
316
-
317
- <dt class="tag-description">Description:</dt>
318
- <dd class="tag-description"><ul class="dummy"><li><p>Cached channels.<br>
319
- Collectionped by name to Channel instance.</p></li></ul></dd>
320
-
321
-
322
-
323
- <dt class="tag-source">Source:</dt>
324
- <dd class="tag-source"><ul class="dummy"><li>
325
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line45">line 45</a>
326
- </li></ul></dd>
327
-
328
-
329
-
330
-
331
-
332
-
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
- </dl>
359
-
360
-
361
-
362
-
363
-
364
- <div class="description usertext">
365
- <p>Cached channels.<br>
366
- Collectionped by name to Channel instance.</p>
367
- </div>
368
-
369
-
370
-
371
- <h5 class="h5-types">Type:</h5>
372
- <ul>
373
- <li>
374
-
375
- <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Channel.html">Channel</a>></span>
376
-
377
-
378
-
379
- </li>
380
- </ul>
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
- <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>
390
-
391
-
392
-
393
-
394
-
395
- <dl class="details">
396
-
397
- <dt class="tag-description">Description:</dt>
398
- <dd class="tag-description"><ul class="dummy"><li><p>Cached emotes.<br>
399
- Collectionped by emote code to Emote instance.</p></li></ul></dd>
400
-
401
-
402
-
403
- <dt class="tag-source">Source:</dt>
404
- <dd class="tag-source"><ul class="dummy"><li>
405
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line38">line 38</a>
406
- </li></ul></dd>
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
-
433
-
434
-
435
-
436
-
437
-
438
- </dl>
439
-
440
-
441
-
442
-
443
-
444
- <div class="description usertext">
445
- <p>Cached emotes.<br>
446
- Collectionped by emote code to Emote instance.</p>
447
- </div>
448
-
449
-
450
-
451
- <h5 class="h5-types">Type:</h5>
452
- <ul>
453
- <li>
454
-
455
- <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Emote.html">Emote</a>></span>
456
-
457
-
458
-
459
- </li>
460
- </ul>
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
- <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>
470
-
471
-
472
-
473
-
474
-
475
- <dl class="details">
476
-
477
- <dt class="tag-description">Description:</dt>
478
- <dd class="tag-description"><ul class="dummy"><li><p>The global channel for Twitch, BTTV and 7TV.</p></li></ul></dd>
479
-
480
-
481
-
482
- <dt class="tag-source">Source:</dt>
483
- <dd class="tag-source"><ul class="dummy"><li>
484
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line53">line 53</a>
485
- </li></ul></dd>
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
-
513
-
514
-
515
-
516
-
517
- </dl>
518
-
519
-
520
-
521
-
522
-
523
- <div class="description usertext">
524
- <p>The global channel for Twitch, BTTV and 7TV.</p>
525
- </div>
526
-
527
-
528
-
529
- <h5 class="h5-types">Type:</h5>
530
- <ul>
531
- <li>
532
-
533
- <span class="param-type"><a href="Channel.html">Channel</a></span>
534
-
535
-
536
-
537
- </li>
538
- </ul>
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
- <h3 class="subsection-title">Methods</h3>
550
-
551
-
552
-
553
-
554
-
555
-
556
- <h4 class="name" id="_cacheBTTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheBTTVEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="BTTVEmote.html">BTTVEmote</a>}</span></h4>
557
-
558
-
559
-
560
-
561
-
562
-
563
- <dl class="details">
564
-
565
- <dt class="tag-description">Description:</dt>
566
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw BTTV emote.</p></li></ul></dd>
567
-
568
-
569
-
570
- <dt class="tag-source">Source:</dt>
571
- <dd class="tag-source"><ul class="dummy"><li>
572
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line122">line 122</a>
573
- </li></ul></dd>
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- </dl>
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
- <h5 class="h5-parameters">Parameters:</h5>
620
-
621
-
622
- <table class="params">
623
- <thead>
624
- <tr>
625
-
626
- <th>Name</th>
627
-
628
-
629
- <th>Type</th>
630
-
631
-
632
-
633
-
634
-
635
- <th class="last">Description</th>
636
- </tr>
637
- </thead>
638
-
639
- <tbody>
640
-
641
-
642
- <tr>
643
-
644
- <td class="name"><code>channel_id</code></td>
645
-
646
-
647
- <td class="type">
648
-
649
-
650
- <span class="param-type">int</span>
651
-
652
-
653
-
654
-
655
- </td>
656
-
657
-
658
-
659
-
660
-
661
- <td class="description last"><p>ID of the channel.</p></td>
662
- </tr>
663
-
664
-
665
-
666
- <tr>
667
-
668
- <td class="name"><code>data</code></td>
669
-
670
-
671
- <td class="type">
672
-
673
-
674
- <span class="param-type">Object</span>
675
-
676
-
677
-
678
-
679
- </td>
680
-
681
-
682
-
683
-
684
-
685
- <td class="description last"><p>Raw data.</p></td>
686
- </tr>
687
-
688
-
689
- </tbody>
690
- </table>
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
- <h5 class="h5-returns">Returns:</h5>
708
-
709
-
710
-
711
-
712
- <dl class="param-type">
713
- <dt>
714
- Type
715
- </dt>
716
- <dd>
717
-
718
- <span class="param-type"><a href="BTTVEmote.html">BTTVEmote</a></span>
719
-
720
-
721
-
722
- </dd>
723
- </dl>
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
- <h4 class="name" id="_cacheFFZEmote"><span class="type-signature type-signature-private">(private) </span>_cacheFFZEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="FFZEmote.html">FFZEmote</a>}</span></h4>
735
-
736
-
737
-
738
-
739
-
740
-
741
- <dl class="details">
742
-
743
- <dt class="tag-description">Description:</dt>
744
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw FFZ emote.</p></li></ul></dd>
745
-
746
-
747
-
748
- <dt class="tag-source">Source:</dt>
749
- <dd class="tag-source"><ul class="dummy"><li>
750
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line162">line 162</a>
751
- </li></ul></dd>
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
- </dl>
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
- <h5 class="h5-parameters">Parameters:</h5>
798
-
799
-
800
- <table class="params">
801
- <thead>
802
- <tr>
803
-
804
- <th>Name</th>
805
-
806
-
807
- <th>Type</th>
808
-
809
-
810
-
811
-
812
-
813
- <th class="last">Description</th>
814
- </tr>
815
- </thead>
816
-
817
- <tbody>
818
-
819
-
820
- <tr>
821
-
822
- <td class="name"><code>channel_id</code></td>
823
-
824
-
825
- <td class="type">
826
-
827
-
828
- <span class="param-type">int</span>
829
-
830
-
831
-
832
-
833
- </td>
834
-
835
-
836
-
837
-
838
-
839
- <td class="description last"><p>ID of the channel.</p></td>
840
- </tr>
841
-
842
-
843
-
844
- <tr>
845
-
846
- <td class="name"><code>data</code></td>
847
-
848
-
849
- <td class="type">
850
-
851
-
852
- <span class="param-type">Object</span>
853
-
854
-
855
-
856
-
857
- </td>
858
-
859
-
860
-
861
-
862
-
863
- <td class="description last"><p>Raw data.</p></td>
864
- </tr>
865
-
866
-
867
- </tbody>
868
- </table>
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
- <h5 class="h5-returns">Returns:</h5>
886
-
887
-
888
-
889
-
890
- <dl class="param-type">
891
- <dt>
892
- Type
893
- </dt>
894
- <dd>
895
-
896
- <span class="param-type"><a href="FFZEmote.html">FFZEmote</a></span>
897
-
898
-
899
-
900
- </dd>
901
- </dl>
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
- <h4 class="name" id="_cacheSevenTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheSevenTVEmote<span class="signature">(channel_id, data, format)</span><span class="type-signature"> &rarr; {<a href="SevenTVEmote.html">SevenTVEmote</a>}</span></h4>
913
-
914
-
915
-
916
-
917
-
918
-
919
- <dl class="details">
920
-
921
- <dt class="tag-description">Description:</dt>
922
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw 7TV emote.</p></li></ul></dd>
923
-
924
-
925
-
926
- <dt class="tag-source">Source:</dt>
927
- <dd class="tag-source"><ul class="dummy"><li>
928
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line197">line 197</a>
929
- </li></ul></dd>
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
- </dl>
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
-
972
-
973
-
974
-
975
- <h5 class="h5-parameters">Parameters:</h5>
976
-
977
-
978
- <table class="params">
979
- <thead>
980
- <tr>
981
-
982
- <th>Name</th>
983
-
984
-
985
- <th>Type</th>
986
-
987
-
988
-
989
-
990
-
991
- <th class="last">Description</th>
992
- </tr>
993
- </thead>
994
-
995
- <tbody>
996
-
997
-
998
- <tr>
999
-
1000
- <td class="name"><code>channel_id</code></td>
1001
-
1002
-
1003
- <td class="type">
1004
-
1005
-
1006
- <span class="param-type">int</span>
1007
-
1008
-
1009
-
1010
-
1011
- </td>
1012
-
1013
-
1014
-
1015
-
1016
-
1017
- <td class="description last"><p>ID of the channel.</p></td>
1018
- </tr>
1019
-
1020
-
1021
-
1022
- <tr>
1023
-
1024
- <td class="name"><code>data</code></td>
1025
-
1026
-
1027
- <td class="type">
1028
-
1029
-
1030
- <span class="param-type">Object</span>
1031
-
1032
-
1033
-
1034
-
1035
- </td>
1036
-
1037
-
1038
-
1039
-
1040
-
1041
- <td class="description last"><p>Raw data.</p></td>
1042
- </tr>
1043
-
1044
-
1045
-
1046
- <tr>
1047
-
1048
- <td class="name"><code>format</code></td>
1049
-
1050
-
1051
- <td class="type">
1052
-
1053
-
1054
- <span class="param-type">string</span>
1055
-
1056
-
1057
-
1058
-
1059
- </td>
1060
-
1061
-
1062
-
1063
-
1064
-
1065
- <td class="description last"><p>The type file format to use (webp/avif).</p></td>
1066
- </tr>
1067
-
1068
-
1069
- </tbody>
1070
- </table>
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
- <h5 class="h5-returns">Returns:</h5>
1088
-
1089
-
1090
-
1091
-
1092
- <dl class="param-type">
1093
- <dt>
1094
- Type
1095
- </dt>
1096
- <dd>
1097
-
1098
- <span class="param-type"><a href="SevenTVEmote.html">SevenTVEmote</a></span>
1099
-
1100
-
1101
-
1102
- </dd>
1103
- </dl>
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
- <h4 class="name" id="_cacheTwitchEmote"><span class="type-signature type-signature-private">(private) </span>_cacheTwitchEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="TwitchEmote.html">TwitchEmote</a>}</span></h4>
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
- <dl class="details">
1122
-
1123
- <dt class="tag-description">Description:</dt>
1124
- <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw twitch emote.</p></li></ul></dd>
1125
-
1126
-
1127
-
1128
- <dt class="tag-source">Source:</dt>
1129
- <dd class="tag-source"><ul class="dummy"><li>
1130
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line82">line 82</a>
1131
- </li></ul></dd>
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
- </dl>
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
- <h5 class="h5-parameters">Parameters:</h5>
1178
-
1179
-
1180
- <table class="params">
1181
- <thead>
1182
- <tr>
1183
-
1184
- <th>Name</th>
1185
-
1186
-
1187
- <th>Type</th>
1188
-
1189
-
1190
-
1191
-
1192
-
1193
- <th class="last">Description</th>
1194
- </tr>
1195
- </thead>
1196
-
1197
- <tbody>
1198
-
1199
-
1200
- <tr>
1201
-
1202
- <td class="name"><code>channel_id</code></td>
1203
-
1204
-
1205
- <td class="type">
1206
-
1207
-
1208
- <span class="param-type">int</span>
1209
-
1210
-
1211
-
1212
-
1213
- </td>
1214
-
1215
-
1216
-
1217
-
1218
-
1219
- <td class="description last"><p>ID of the channel.</p></td>
1220
- </tr>
1221
-
1222
-
1223
-
1224
- <tr>
1225
-
1226
- <td class="name"><code>data</code></td>
1227
-
1228
-
1229
- <td class="type">
1230
-
1231
-
1232
- <span class="param-type">Object</span>
1233
-
1234
-
1235
-
1236
-
1237
- </td>
1238
-
1239
-
1240
-
1241
-
1242
-
1243
- <td class="description last"><p>Raw data.</p></td>
1244
- </tr>
1245
-
1246
-
1247
- </tbody>
1248
- </table>
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
- <h5 class="h5-returns">Returns:</h5>
1266
-
1267
-
1268
-
1269
-
1270
- <dl class="param-type">
1271
- <dt>
1272
- Type
1273
- </dt>
1274
- <dd>
1275
-
1276
- <span class="param-type"><a href="TwitchEmote.html">TwitchEmote</a></span>
1277
-
1278
-
1279
-
1280
- </dd>
1281
- </dl>
1282
-
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
- <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>
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
- <dl class="details">
1300
-
1301
- <dt class="tag-description">Description:</dt>
1302
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw BTTV emotes data for a channel.<br>
1303
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
1304
-
1305
-
1306
-
1307
- <dt class="tag-source">Source:</dt>
1308
- <dd class="tag-source"><ul class="dummy"><li>
1309
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line102">line 102</a>
1310
- </li></ul></dd>
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
-
1339
-
1340
-
1341
-
1342
- </dl>
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
- <h5 class="h5-parameters">Parameters:</h5>
1357
-
1358
-
1359
- <table class="params">
1360
- <thead>
1361
- <tr>
1362
-
1363
- <th>Name</th>
1364
-
1365
-
1366
- <th>Type</th>
1367
-
1368
-
1369
- <th>Attributes</th>
1370
-
1371
-
1372
-
1373
- <th>Default</th>
1374
-
1375
-
1376
- <th class="last">Description</th>
1377
- </tr>
1378
- </thead>
1379
-
1380
- <tbody>
1381
-
1382
-
1383
- <tr>
1384
-
1385
- <td class="name"><code>id</code></td>
1386
-
1387
-
1388
- <td class="type">
1389
-
1390
-
1391
- <span class="param-type">int</span>
1392
-
1393
-
1394
-
1395
-
1396
- </td>
1397
-
1398
-
1399
- <td class="attributes">
1400
-
1401
- &lt;optional><br>
1402
-
1403
-
1404
-
1405
-
1406
-
1407
- </td>
1408
-
1409
-
1410
-
1411
- <td class="default">
1412
-
1413
- <code>null</code>
1414
-
1415
- </td>
1416
-
1417
-
1418
- <td class="description last"><p>ID of the channel.</p></td>
1419
- </tr>
1420
-
1421
-
1422
- </tbody>
1423
- </table>
1424
-
1425
-
1426
-
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
- <h5 class="h5-returns">Returns:</h5>
1441
-
1442
-
1443
-
1444
-
1445
- <dl class="param-type">
1446
- <dt>
1447
- Type
1448
- </dt>
1449
- <dd>
1450
-
1451
- <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1452
-
1453
-
1454
-
1455
- </dd>
1456
- </dl>
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
- <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>
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
- <dl class="details">
1475
-
1476
- <dt class="tag-description">Description:</dt>
1477
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw FFZ emotes data for a channel.</p></li></ul></dd>
1478
-
1479
-
1480
-
1481
- <dt class="tag-source">Source:</dt>
1482
- <dd class="tag-source"><ul class="dummy"><li>
1483
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line141">line 141</a>
1484
- </li></ul></dd>
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
-
1516
- </dl>
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
-
1525
-
1526
-
1527
-
1528
-
1529
-
1530
- <h5 class="h5-parameters">Parameters:</h5>
1531
-
1532
-
1533
- <table class="params">
1534
- <thead>
1535
- <tr>
1536
-
1537
- <th>Name</th>
1538
-
1539
-
1540
- <th>Type</th>
1541
-
1542
-
1543
-
1544
-
1545
-
1546
- <th class="last">Description</th>
1547
- </tr>
1548
- </thead>
1549
-
1550
- <tbody>
1551
-
1552
-
1553
- <tr>
1554
-
1555
- <td class="name"><code>id</code></td>
1556
-
1557
-
1558
- <td class="type">
1559
-
1560
-
1561
- <span class="param-type">int</span>
1562
-
1563
-
1564
-
1565
-
1566
- </td>
1567
-
1568
-
1569
-
1570
-
1571
-
1572
- <td class="description last"><p>ID of the channel.</p></td>
1573
- </tr>
1574
-
1575
-
1576
- </tbody>
1577
- </table>
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
-
1591
-
1592
-
1593
-
1594
- <h5 class="h5-returns">Returns:</h5>
1595
-
1596
-
1597
-
1598
-
1599
- <dl class="param-type">
1600
- <dt>
1601
- Type
1602
- </dt>
1603
- <dd>
1604
-
1605
- <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1606
-
1607
-
1608
-
1609
- </dd>
1610
- </dl>
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
- <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>
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
- <dl class="details">
1629
-
1630
- <dt class="tag-description">Description:</dt>
1631
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw 7TV emotes data for a channel.</p></li></ul></dd>
1632
-
1633
-
1634
-
1635
- <dt class="tag-source">Source:</dt>
1636
- <dd class="tag-source"><ul class="dummy"><li>
1637
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line181">line 181</a>
1638
- </li></ul></dd>
1639
-
1640
-
1641
-
1642
-
1643
-
1644
-
1645
-
1646
-
1647
-
1648
-
1649
-
1650
-
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
- </dl>
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
-
1683
-
1684
- <h5 class="h5-parameters">Parameters:</h5>
1685
-
1686
-
1687
- <table class="params">
1688
- <thead>
1689
- <tr>
1690
-
1691
- <th>Name</th>
1692
-
1693
-
1694
- <th>Type</th>
1695
-
1696
-
1697
- <th>Attributes</th>
1698
-
1699
-
1700
-
1701
- <th>Default</th>
1702
-
1703
-
1704
- <th class="last">Description</th>
1705
- </tr>
1706
- </thead>
1707
-
1708
- <tbody>
1709
-
1710
-
1711
- <tr>
1712
-
1713
- <td class="name"><code>id</code></td>
1714
-
1715
-
1716
- <td class="type">
1717
-
1718
-
1719
- <span class="param-type">int</span>
1720
-
1721
-
1722
-
1723
-
1724
- </td>
1725
-
1726
-
1727
- <td class="attributes">
1728
-
1729
- &lt;optional><br>
1730
-
1731
-
1732
-
1733
-
1734
-
1735
- </td>
1736
-
1737
-
1738
-
1739
- <td class="default">
1740
-
1741
- <code>null</code>
1742
-
1743
- </td>
1744
-
1745
-
1746
- <td class="description last"><p>ID of the channel.</p></td>
1747
- </tr>
1748
-
1749
-
1750
- </tbody>
1751
- </table>
1752
-
1753
-
1754
-
1755
-
1756
-
1757
-
1758
-
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
- <h5 class="h5-returns">Returns:</h5>
1769
-
1770
-
1771
-
1772
-
1773
- <dl class="param-type">
1774
- <dt>
1775
- Type
1776
- </dt>
1777
- <dd>
1778
-
1779
- <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1780
-
1781
-
1782
-
1783
- </dd>
1784
- </dl>
1785
-
1786
-
1787
-
1788
-
1789
-
1790
-
1791
-
1792
-
1793
-
1794
-
1795
- <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>
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
- <dl class="details">
1803
-
1804
- <dt class="tag-description">Description:</dt>
1805
- <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw Twitch emotes data for a channel.</p></li></ul></dd>
1806
-
1807
-
1808
-
1809
- <dt class="tag-source">Source:</dt>
1810
- <dd class="tag-source"><ul class="dummy"><li>
1811
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line63">line 63</a>
1812
- </li></ul></dd>
1813
-
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
-
1821
-
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
-
1835
-
1836
-
1837
-
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
- </dl>
1845
-
1846
-
1847
-
1848
-
1849
-
1850
-
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
- <h5 class="h5-parameters">Parameters:</h5>
1859
-
1860
-
1861
- <table class="params">
1862
- <thead>
1863
- <tr>
1864
-
1865
- <th>Name</th>
1866
-
1867
-
1868
- <th>Type</th>
1869
-
1870
-
1871
-
1872
-
1873
-
1874
- <th class="last">Description</th>
1875
- </tr>
1876
- </thead>
1877
-
1878
- <tbody>
1879
-
1880
-
1881
- <tr>
1882
-
1883
- <td class="name"><code>id</code></td>
1884
-
1885
-
1886
- <td class="type">
1887
-
1888
-
1889
- <span class="param-type">int</span>
1890
-
1891
-
1892
-
1893
-
1894
- </td>
1895
-
1896
-
1897
-
1898
-
1899
-
1900
- <td class="description last"><p>ID of the channel.</p></td>
1901
- </tr>
1902
-
1903
-
1904
- </tbody>
1905
- </table>
1906
-
1907
-
1908
-
1909
-
1910
-
1911
-
1912
-
1913
-
1914
-
1915
-
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
- <h5 class="h5-returns">Returns:</h5>
1923
-
1924
-
1925
-
1926
-
1927
- <dl class="param-type">
1928
- <dt>
1929
- Type
1930
- </dt>
1931
- <dd>
1932
-
1933
- <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1934
-
1935
-
1936
-
1937
- </dd>
1938
- </dl>
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
- <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>
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
- <dl class="details">
1957
-
1958
- <dt class="tag-description">Description:</dt>
1959
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the BTTV emotes for a channel.<br>
1960
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
1961
-
1962
-
1963
-
1964
- <dt class="tag-source">Source:</dt>
1965
- <dd class="tag-source"><ul class="dummy"><li>
1966
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line233">line 233</a>
1967
- </li></ul></dd>
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
-
1994
-
1995
-
1996
-
1997
-
1998
-
1999
- </dl>
2000
-
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
- <h5 class="h5-parameters">Parameters:</h5>
2014
-
2015
-
2016
- <table class="params">
2017
- <thead>
2018
- <tr>
2019
-
2020
- <th>Name</th>
2021
-
2022
-
2023
- <th>Type</th>
2024
-
2025
-
2026
- <th>Attributes</th>
2027
-
2028
-
2029
-
2030
- <th>Default</th>
2031
-
2032
-
2033
- <th class="last">Description</th>
2034
- </tr>
2035
- </thead>
2036
-
2037
- <tbody>
2038
-
2039
-
2040
- <tr>
2041
-
2042
- <td class="name"><code>channel</code></td>
2043
-
2044
-
2045
- <td class="type">
2046
-
2047
-
2048
- <span class="param-type">int</span>
2049
-
2050
-
2051
-
2052
-
2053
- </td>
2054
-
2055
-
2056
- <td class="attributes">
2057
-
2058
- &lt;optional><br>
2059
-
2060
-
2061
-
2062
-
2063
-
2064
- </td>
2065
-
2066
-
2067
-
2068
- <td class="default">
2069
-
2070
- <code>null</code>
2071
-
2072
- </td>
2073
-
2074
-
2075
- <td class="description last"><p>ID of the channel.</p></td>
2076
- </tr>
2077
-
2078
-
2079
- </tbody>
2080
- </table>
2081
-
2082
-
2083
-
2084
-
2085
-
2086
-
2087
-
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
- <h5 class="h5-returns">Returns:</h5>
2098
-
2099
-
2100
-
2101
-
2102
- <dl class="param-type">
2103
- <dt>
2104
- Type
2105
- </dt>
2106
- <dd>
2107
-
2108
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="BTTVEmote.html">BTTVEmote</a>>></span>
2109
-
2110
-
2111
-
2112
- </dd>
2113
- </dl>
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
- <h4 class="name" id="fetchFFZEmotes"><span class="type-signature"></span>fetchFFZEmotes<span class="signature">(channel)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>>}</span></h4>
2125
-
2126
-
2127
-
2128
-
2129
-
2130
-
2131
- <dl class="details">
2132
-
2133
- <dt class="tag-description">Description:</dt>
2134
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the FFZ emotes for a channel.</p></li></ul></dd>
2135
-
2136
-
2137
-
2138
- <dt class="tag-source">Source:</dt>
2139
- <dd class="tag-source"><ul class="dummy"><li>
2140
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line248">line 248</a>
2141
- </li></ul></dd>
2142
-
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
-
2157
-
2158
-
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
- </dl>
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
-
2184
-
2185
-
2186
-
2187
- <h5 class="h5-parameters">Parameters:</h5>
2188
-
2189
-
2190
- <table class="params">
2191
- <thead>
2192
- <tr>
2193
-
2194
- <th>Name</th>
2195
-
2196
-
2197
- <th>Type</th>
2198
-
2199
-
2200
-
2201
-
2202
-
2203
- <th class="last">Description</th>
2204
- </tr>
2205
- </thead>
2206
-
2207
- <tbody>
2208
-
2209
-
2210
- <tr>
2211
-
2212
- <td class="name"><code>channel</code></td>
2213
-
2214
-
2215
- <td class="type">
2216
-
2217
-
2218
- <span class="param-type">int</span>
2219
-
2220
-
2221
-
2222
-
2223
- </td>
2224
-
2225
-
2226
-
2227
-
2228
-
2229
- <td class="description last"><p>ID of the channel.</p></td>
2230
- </tr>
2231
-
2232
-
2233
- </tbody>
2234
- </table>
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
-
2250
-
2251
- <h5 class="h5-returns">Returns:</h5>
2252
-
2253
-
2254
-
2255
-
2256
- <dl class="param-type">
2257
- <dt>
2258
- Type
2259
- </dt>
2260
- <dd>
2261
-
2262
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>></span>
2263
-
2264
-
2265
-
2266
- </dd>
2267
- </dl>
2268
-
2269
-
2270
-
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
-
2278
- <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>
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
- <dl class="details">
2286
-
2287
- <dt class="tag-description">Description:</dt>
2288
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the 7TV emotes for a channel.</p></li></ul></dd>
2289
-
2290
-
2291
-
2292
- <dt class="tag-source">Source:</dt>
2293
- <dd class="tag-source"><ul class="dummy"><li>
2294
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line264">line 264</a>
2295
- </li></ul></dd>
2296
-
2297
-
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
-
2309
-
2310
-
2311
-
2312
-
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
-
2323
-
2324
-
2325
-
2326
-
2327
- </dl>
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
- <h5 class="h5-parameters">Parameters:</h5>
2342
-
2343
-
2344
- <table class="params">
2345
- <thead>
2346
- <tr>
2347
-
2348
- <th>Name</th>
2349
-
2350
-
2351
- <th>Type</th>
2352
-
2353
-
2354
- <th>Attributes</th>
2355
-
2356
-
2357
-
2358
- <th>Default</th>
2359
-
2360
-
2361
- <th class="last">Description</th>
2362
- </tr>
2363
- </thead>
2364
-
2365
- <tbody>
2366
-
2367
-
2368
- <tr>
2369
-
2370
- <td class="name"><code>channel</code></td>
2371
-
2372
-
2373
- <td class="type">
2374
-
2375
-
2376
- <span class="param-type">int</span>
2377
-
2378
-
2379
-
2380
-
2381
- </td>
2382
-
2383
-
2384
- <td class="attributes">
2385
-
2386
- &lt;optional><br>
2387
-
2388
-
2389
-
2390
-
2391
-
2392
- </td>
2393
-
2394
-
2395
-
2396
- <td class="default">
2397
-
2398
- <code>null</code>
2399
-
2400
- </td>
2401
-
2402
-
2403
- <td class="description last"><p>ID of the channel.</p></td>
2404
- </tr>
2405
-
2406
-
2407
-
2408
- <tr>
2409
-
2410
- <td class="name"><code>format</code></td>
2411
-
2412
-
2413
- <td class="type">
2414
-
2415
-
2416
- <span class="param-type">'webp'</span>
2417
- |
2418
-
2419
- <span class="param-type">'avif'</span>
2420
-
2421
-
2422
-
2423
-
2424
- </td>
2425
-
2426
-
2427
- <td class="attributes">
2428
-
2429
- &lt;optional><br>
2430
-
2431
-
2432
-
2433
-
2434
-
2435
- </td>
2436
-
2437
-
2438
-
2439
- <td class="default">
2440
-
2441
- <code>'webp'</code>
2442
-
2443
- </td>
2444
-
2445
-
2446
- <td class="description last"><p>The type file format to use (webp/avif).</p></td>
2447
- </tr>
2448
-
2449
-
2450
- </tbody>
2451
- </table>
2452
-
2453
-
2454
-
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
-
2466
-
2467
-
2468
- <h5 class="h5-returns">Returns:</h5>
2469
-
2470
-
2471
-
2472
-
2473
- <dl class="param-type">
2474
- <dt>
2475
- Type
2476
- </dt>
2477
- <dd>
2478
-
2479
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="SevenTVEmote.html">SevenTVEmote</a>>></span>
2480
-
2481
-
2482
-
2483
- </dd>
2484
- </dl>
2485
-
2486
-
2487
-
2488
-
2489
-
2490
-
2491
-
2492
-
2493
-
2494
-
2495
- <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>
2496
-
2497
-
2498
-
2499
-
2500
-
2501
-
2502
- <dl class="details">
2503
-
2504
- <dt class="tag-description">Description:</dt>
2505
- <dd class="tag-description"><ul class="dummy"><li><p>Fetches the Twitch emotes for a channel.<br>
2506
- Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
2507
-
2508
-
2509
-
2510
- <dt class="tag-source">Source:</dt>
2511
- <dd class="tag-source"><ul class="dummy"><li>
2512
- <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line217">line 217</a>
2513
- </li></ul></dd>
2514
-
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
- </dl>
2546
-
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
-
2554
-
2555
-
2556
-
2557
-
2558
-
2559
- <h5 class="h5-parameters">Parameters:</h5>
2560
-
2561
-
2562
- <table class="params">
2563
- <thead>
2564
- <tr>
2565
-
2566
- <th>Name</th>
2567
-
2568
-
2569
- <th>Type</th>
2570
-
2571
-
2572
- <th>Attributes</th>
2573
-
2574
-
2575
-
2576
- <th>Default</th>
2577
-
2578
-
2579
- <th class="last">Description</th>
2580
- </tr>
2581
- </thead>
2582
-
2583
- <tbody>
2584
-
2585
-
2586
- <tr>
2587
-
2588
- <td class="name"><code>channel</code></td>
2589
-
2590
-
2591
- <td class="type">
2592
-
2593
-
2594
- <span class="param-type">int</span>
2595
-
2596
-
2597
-
2598
-
2599
- </td>
2600
-
2601
-
2602
- <td class="attributes">
2603
-
2604
- &lt;optional><br>
2605
-
2606
-
2607
-
2608
-
2609
-
2610
- </td>
2611
-
2612
-
2613
-
2614
- <td class="default">
2615
-
2616
- <code>null</code>
2617
-
2618
- </td>
2619
-
2620
-
2621
- <td class="description last"><p>ID of the channel.</p></td>
2622
- </tr>
2623
-
2624
-
2625
- </tbody>
2626
- </table>
2627
-
2628
-
2629
-
2630
-
2631
-
2632
-
2633
-
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
-
2642
-
2643
- <h5 class="h5-returns">Returns:</h5>
2644
-
2645
-
2646
-
2647
-
2648
- <dl class="param-type">
2649
- <dt>
2650
- Type
2651
- </dt>
2652
- <dd>
2653
-
2654
- <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="TwitchEmote.html">TwitchEmote</a>>></span>
2655
-
2656
-
2657
-
2658
- </dd>
2659
- </dl>
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
-
2670
-
2671
- </article>
2672
-
2673
- </section>
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
- </div>
2681
-
2682
- <br class="clear">
2683
-
2684
- <footer>
2685
- 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.
2686
- </footer>
2687
-
2688
- <script>prettyPrint();</script>
2689
- <script src="scripts/polyfill.js"></script>
2690
- <script src="scripts/linenumber.js"></script>
2691
-
2692
-
2693
-
2694
- </body>
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><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><li data-type='method'><a href="Channel.html#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</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#_cacheSevenTVEmote">_cacheSevenTVEmote</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#_getRawSevenTVEmotes">_getRawSevenTVEmotes</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#fetchSevenTVEmotes">fetchSevenTVEmotes</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="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#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>
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)</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#line23">line 23</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
+ </tbody>
201
+ </table>
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+ </div>
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ <h3 class="subsection-title">Members</h3>
239
+
240
+
241
+
242
+ <h4 class="name" id="apiClient"><span class="type-signature"></span>apiClient<span class="type-signature"></span></h4>
243
+
244
+
245
+
246
+
247
+
248
+ <dl class="details">
249
+
250
+ <dt class="tag-description">Description:</dt>
251
+ <dd class="tag-description"><ul class="dummy"><li><p>Twitch api client.</p></li></ul></dd>
252
+
253
+
254
+
255
+ <dt class="tag-source">Source:</dt>
256
+ <dd class="tag-source"><ul class="dummy"><li>
257
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line30">line 30</a>
258
+ </li></ul></dd>
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+ </dl>
291
+
292
+
293
+
294
+
295
+
296
+ <div class="description usertext">
297
+ <p>Twitch api client.</p>
298
+ </div>
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <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>
310
+
311
+
312
+
313
+
314
+
315
+ <dl class="details">
316
+
317
+ <dt class="tag-description">Description:</dt>
318
+ <dd class="tag-description"><ul class="dummy"><li><p>Cached channels.<br>
319
+ Collectionped by name to Channel instance.</p></li></ul></dd>
320
+
321
+
322
+
323
+ <dt class="tag-source">Source:</dt>
324
+ <dd class="tag-source"><ul class="dummy"><li>
325
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line45">line 45</a>
326
+ </li></ul></dd>
327
+
328
+
329
+
330
+
331
+
332
+
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
+ </dl>
359
+
360
+
361
+
362
+
363
+
364
+ <div class="description usertext">
365
+ <p>Cached channels.<br>
366
+ Collectionped by name to Channel instance.</p>
367
+ </div>
368
+
369
+
370
+
371
+ <h5 class="h5-types">Type:</h5>
372
+ <ul>
373
+ <li>
374
+
375
+ <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Channel.html">Channel</a>></span>
376
+
377
+
378
+
379
+ </li>
380
+ </ul>
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ <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>
390
+
391
+
392
+
393
+
394
+
395
+ <dl class="details">
396
+
397
+ <dt class="tag-description">Description:</dt>
398
+ <dd class="tag-description"><ul class="dummy"><li><p>Cached emotes.<br>
399
+ Collectionped by emote code to Emote instance.</p></li></ul></dd>
400
+
401
+
402
+
403
+ <dt class="tag-source">Source:</dt>
404
+ <dd class="tag-source"><ul class="dummy"><li>
405
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line38">line 38</a>
406
+ </li></ul></dd>
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
+
433
+
434
+
435
+
436
+
437
+
438
+ </dl>
439
+
440
+
441
+
442
+
443
+
444
+ <div class="description usertext">
445
+ <p>Cached emotes.<br>
446
+ Collectionped by emote code to Emote instance.</p>
447
+ </div>
448
+
449
+
450
+
451
+ <h5 class="h5-types">Type:</h5>
452
+ <ul>
453
+ <li>
454
+
455
+ <span class="param-type"><a href="Collection.html">Collection</a>.&lt;string, <a href="Emote.html">Emote</a>></span>
456
+
457
+
458
+
459
+ </li>
460
+ </ul>
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+ <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>
470
+
471
+
472
+
473
+
474
+
475
+ <dl class="details">
476
+
477
+ <dt class="tag-description">Description:</dt>
478
+ <dd class="tag-description"><ul class="dummy"><li><p>The global channel for Twitch, BTTV and 7TV.</p></li></ul></dd>
479
+
480
+
481
+
482
+ <dt class="tag-source">Source:</dt>
483
+ <dd class="tag-source"><ul class="dummy"><li>
484
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line53">line 53</a>
485
+ </li></ul></dd>
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
+
513
+
514
+
515
+
516
+
517
+ </dl>
518
+
519
+
520
+
521
+
522
+
523
+ <div class="description usertext">
524
+ <p>The global channel for Twitch, BTTV and 7TV.</p>
525
+ </div>
526
+
527
+
528
+
529
+ <h5 class="h5-types">Type:</h5>
530
+ <ul>
531
+ <li>
532
+
533
+ <span class="param-type"><a href="Channel.html">Channel</a></span>
534
+
535
+
536
+
537
+ </li>
538
+ </ul>
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+ <h3 class="subsection-title">Methods</h3>
550
+
551
+
552
+
553
+
554
+
555
+
556
+ <h4 class="name" id="_cacheBTTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheBTTVEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="BTTVEmote.html">BTTVEmote</a>}</span></h4>
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <dl class="details">
564
+
565
+ <dt class="tag-description">Description:</dt>
566
+ <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw BTTV emote.</p></li></ul></dd>
567
+
568
+
569
+
570
+ <dt class="tag-source">Source:</dt>
571
+ <dd class="tag-source"><ul class="dummy"><li>
572
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line122">line 122</a>
573
+ </li></ul></dd>
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+ </dl>
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+ <h5 class="h5-parameters">Parameters:</h5>
620
+
621
+
622
+ <table class="params">
623
+ <thead>
624
+ <tr>
625
+
626
+ <th>Name</th>
627
+
628
+
629
+ <th>Type</th>
630
+
631
+
632
+
633
+
634
+
635
+ <th class="last">Description</th>
636
+ </tr>
637
+ </thead>
638
+
639
+ <tbody>
640
+
641
+
642
+ <tr>
643
+
644
+ <td class="name"><code>channel_id</code></td>
645
+
646
+
647
+ <td class="type">
648
+
649
+
650
+ <span class="param-type">int</span>
651
+
652
+
653
+
654
+
655
+ </td>
656
+
657
+
658
+
659
+
660
+
661
+ <td class="description last"><p>ID of the channel.</p></td>
662
+ </tr>
663
+
664
+
665
+
666
+ <tr>
667
+
668
+ <td class="name"><code>data</code></td>
669
+
670
+
671
+ <td class="type">
672
+
673
+
674
+ <span class="param-type">Object</span>
675
+
676
+
677
+
678
+
679
+ </td>
680
+
681
+
682
+
683
+
684
+
685
+ <td class="description last"><p>Raw data.</p></td>
686
+ </tr>
687
+
688
+
689
+ </tbody>
690
+ </table>
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+ <h5 class="h5-returns">Returns:</h5>
708
+
709
+
710
+
711
+
712
+ <dl class="param-type">
713
+ <dt>
714
+ Type
715
+ </dt>
716
+ <dd>
717
+
718
+ <span class="param-type"><a href="BTTVEmote.html">BTTVEmote</a></span>
719
+
720
+
721
+
722
+ </dd>
723
+ </dl>
724
+
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+ <h4 class="name" id="_cacheFFZEmote"><span class="type-signature type-signature-private">(private) </span>_cacheFFZEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="FFZEmote.html">FFZEmote</a>}</span></h4>
735
+
736
+
737
+
738
+
739
+
740
+
741
+ <dl class="details">
742
+
743
+ <dt class="tag-description">Description:</dt>
744
+ <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw FFZ emote.</p></li></ul></dd>
745
+
746
+
747
+
748
+ <dt class="tag-source">Source:</dt>
749
+ <dd class="tag-source"><ul class="dummy"><li>
750
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line162">line 162</a>
751
+ </li></ul></dd>
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+ </dl>
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+ <h5 class="h5-parameters">Parameters:</h5>
798
+
799
+
800
+ <table class="params">
801
+ <thead>
802
+ <tr>
803
+
804
+ <th>Name</th>
805
+
806
+
807
+ <th>Type</th>
808
+
809
+
810
+
811
+
812
+
813
+ <th class="last">Description</th>
814
+ </tr>
815
+ </thead>
816
+
817
+ <tbody>
818
+
819
+
820
+ <tr>
821
+
822
+ <td class="name"><code>channel_id</code></td>
823
+
824
+
825
+ <td class="type">
826
+
827
+
828
+ <span class="param-type">int</span>
829
+
830
+
831
+
832
+
833
+ </td>
834
+
835
+
836
+
837
+
838
+
839
+ <td class="description last"><p>ID of the channel.</p></td>
840
+ </tr>
841
+
842
+
843
+
844
+ <tr>
845
+
846
+ <td class="name"><code>data</code></td>
847
+
848
+
849
+ <td class="type">
850
+
851
+
852
+ <span class="param-type">Object</span>
853
+
854
+
855
+
856
+
857
+ </td>
858
+
859
+
860
+
861
+
862
+
863
+ <td class="description last"><p>Raw data.</p></td>
864
+ </tr>
865
+
866
+
867
+ </tbody>
868
+ </table>
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+ <h5 class="h5-returns">Returns:</h5>
886
+
887
+
888
+
889
+
890
+ <dl class="param-type">
891
+ <dt>
892
+ Type
893
+ </dt>
894
+ <dd>
895
+
896
+ <span class="param-type"><a href="FFZEmote.html">FFZEmote</a></span>
897
+
898
+
899
+
900
+ </dd>
901
+ </dl>
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+ <h4 class="name" id="_cacheSevenTVEmote"><span class="type-signature type-signature-private">(private) </span>_cacheSevenTVEmote<span class="signature">(channel_id, data, format)</span><span class="type-signature"> &rarr; {<a href="SevenTVEmote.html">SevenTVEmote</a>}</span></h4>
913
+
914
+
915
+
916
+
917
+
918
+
919
+ <dl class="details">
920
+
921
+ <dt class="tag-description">Description:</dt>
922
+ <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw 7TV emote.</p></li></ul></dd>
923
+
924
+
925
+
926
+ <dt class="tag-source">Source:</dt>
927
+ <dd class="tag-source"><ul class="dummy"><li>
928
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line197">line 197</a>
929
+ </li></ul></dd>
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+ </dl>
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+ <h5 class="h5-parameters">Parameters:</h5>
976
+
977
+
978
+ <table class="params">
979
+ <thead>
980
+ <tr>
981
+
982
+ <th>Name</th>
983
+
984
+
985
+ <th>Type</th>
986
+
987
+
988
+
989
+
990
+
991
+ <th class="last">Description</th>
992
+ </tr>
993
+ </thead>
994
+
995
+ <tbody>
996
+
997
+
998
+ <tr>
999
+
1000
+ <td class="name"><code>channel_id</code></td>
1001
+
1002
+
1003
+ <td class="type">
1004
+
1005
+
1006
+ <span class="param-type">int</span>
1007
+
1008
+
1009
+
1010
+
1011
+ </td>
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+ <td class="description last"><p>ID of the channel.</p></td>
1018
+ </tr>
1019
+
1020
+
1021
+
1022
+ <tr>
1023
+
1024
+ <td class="name"><code>data</code></td>
1025
+
1026
+
1027
+ <td class="type">
1028
+
1029
+
1030
+ <span class="param-type">Object</span>
1031
+
1032
+
1033
+
1034
+
1035
+ </td>
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+ <td class="description last"><p>Raw data.</p></td>
1042
+ </tr>
1043
+
1044
+
1045
+
1046
+ <tr>
1047
+
1048
+ <td class="name"><code>format</code></td>
1049
+
1050
+
1051
+ <td class="type">
1052
+
1053
+
1054
+ <span class="param-type">string</span>
1055
+
1056
+
1057
+
1058
+
1059
+ </td>
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+ <td class="description last"><p>The type file format to use (webp/avif).</p></td>
1066
+ </tr>
1067
+
1068
+
1069
+ </tbody>
1070
+ </table>
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ <h5 class="h5-returns">Returns:</h5>
1088
+
1089
+
1090
+
1091
+
1092
+ <dl class="param-type">
1093
+ <dt>
1094
+ Type
1095
+ </dt>
1096
+ <dd>
1097
+
1098
+ <span class="param-type"><a href="SevenTVEmote.html">SevenTVEmote</a></span>
1099
+
1100
+
1101
+
1102
+ </dd>
1103
+ </dl>
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+ <h4 class="name" id="_cacheTwitchEmote"><span class="type-signature type-signature-private">(private) </span>_cacheTwitchEmote<span class="signature">(channel_id, data)</span><span class="type-signature"> &rarr; {<a href="TwitchEmote.html">TwitchEmote</a>}</span></h4>
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+ <dl class="details">
1122
+
1123
+ <dt class="tag-description">Description:</dt>
1124
+ <dd class="tag-description"><ul class="dummy"><li><p>Converts and caches a raw twitch emote.</p></li></ul></dd>
1125
+
1126
+
1127
+
1128
+ <dt class="tag-source">Source:</dt>
1129
+ <dd class="tag-source"><ul class="dummy"><li>
1130
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line82">line 82</a>
1131
+ </li></ul></dd>
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+ </dl>
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+ <h5 class="h5-parameters">Parameters:</h5>
1178
+
1179
+
1180
+ <table class="params">
1181
+ <thead>
1182
+ <tr>
1183
+
1184
+ <th>Name</th>
1185
+
1186
+
1187
+ <th>Type</th>
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ <th class="last">Description</th>
1194
+ </tr>
1195
+ </thead>
1196
+
1197
+ <tbody>
1198
+
1199
+
1200
+ <tr>
1201
+
1202
+ <td class="name"><code>channel_id</code></td>
1203
+
1204
+
1205
+ <td class="type">
1206
+
1207
+
1208
+ <span class="param-type">int</span>
1209
+
1210
+
1211
+
1212
+
1213
+ </td>
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+ <td class="description last"><p>ID of the channel.</p></td>
1220
+ </tr>
1221
+
1222
+
1223
+
1224
+ <tr>
1225
+
1226
+ <td class="name"><code>data</code></td>
1227
+
1228
+
1229
+ <td class="type">
1230
+
1231
+
1232
+ <span class="param-type">Object</span>
1233
+
1234
+
1235
+
1236
+
1237
+ </td>
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+ <td class="description last"><p>Raw data.</p></td>
1244
+ </tr>
1245
+
1246
+
1247
+ </tbody>
1248
+ </table>
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+ <h5 class="h5-returns">Returns:</h5>
1266
+
1267
+
1268
+
1269
+
1270
+ <dl class="param-type">
1271
+ <dt>
1272
+ Type
1273
+ </dt>
1274
+ <dd>
1275
+
1276
+ <span class="param-type"><a href="TwitchEmote.html">TwitchEmote</a></span>
1277
+
1278
+
1279
+
1280
+ </dd>
1281
+ </dl>
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+
1292
+ <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>
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+ <dl class="details">
1300
+
1301
+ <dt class="tag-description">Description:</dt>
1302
+ <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw BTTV emotes data for a channel.<br>
1303
+ Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
1304
+
1305
+
1306
+
1307
+ <dt class="tag-source">Source:</dt>
1308
+ <dd class="tag-source"><ul class="dummy"><li>
1309
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line102">line 102</a>
1310
+ </li></ul></dd>
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+ </dl>
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+ <h5 class="h5-parameters">Parameters:</h5>
1357
+
1358
+
1359
+ <table class="params">
1360
+ <thead>
1361
+ <tr>
1362
+
1363
+ <th>Name</th>
1364
+
1365
+
1366
+ <th>Type</th>
1367
+
1368
+
1369
+ <th>Attributes</th>
1370
+
1371
+
1372
+
1373
+ <th>Default</th>
1374
+
1375
+
1376
+ <th class="last">Description</th>
1377
+ </tr>
1378
+ </thead>
1379
+
1380
+ <tbody>
1381
+
1382
+
1383
+ <tr>
1384
+
1385
+ <td class="name"><code>id</code></td>
1386
+
1387
+
1388
+ <td class="type">
1389
+
1390
+
1391
+ <span class="param-type">int</span>
1392
+
1393
+
1394
+
1395
+
1396
+ </td>
1397
+
1398
+
1399
+ <td class="attributes">
1400
+
1401
+ &lt;optional><br>
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+ </td>
1408
+
1409
+
1410
+
1411
+ <td class="default">
1412
+
1413
+ <code>null</code>
1414
+
1415
+ </td>
1416
+
1417
+
1418
+ <td class="description last"><p>ID of the channel.</p></td>
1419
+ </tr>
1420
+
1421
+
1422
+ </tbody>
1423
+ </table>
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+ <h5 class="h5-returns">Returns:</h5>
1441
+
1442
+
1443
+
1444
+
1445
+ <dl class="param-type">
1446
+ <dt>
1447
+ Type
1448
+ </dt>
1449
+ <dd>
1450
+
1451
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1452
+
1453
+
1454
+
1455
+ </dd>
1456
+ </dl>
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+ <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>
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+ <dl class="details">
1475
+
1476
+ <dt class="tag-description">Description:</dt>
1477
+ <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw FFZ emotes data for a channel.</p></li></ul></dd>
1478
+
1479
+
1480
+
1481
+ <dt class="tag-source">Source:</dt>
1482
+ <dd class="tag-source"><ul class="dummy"><li>
1483
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line141">line 141</a>
1484
+ </li></ul></dd>
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+
1515
+
1516
+ </dl>
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+
1529
+
1530
+ <h5 class="h5-parameters">Parameters:</h5>
1531
+
1532
+
1533
+ <table class="params">
1534
+ <thead>
1535
+ <tr>
1536
+
1537
+ <th>Name</th>
1538
+
1539
+
1540
+ <th>Type</th>
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+ <th class="last">Description</th>
1547
+ </tr>
1548
+ </thead>
1549
+
1550
+ <tbody>
1551
+
1552
+
1553
+ <tr>
1554
+
1555
+ <td class="name"><code>id</code></td>
1556
+
1557
+
1558
+ <td class="type">
1559
+
1560
+
1561
+ <span class="param-type">int</span>
1562
+
1563
+
1564
+
1565
+
1566
+ </td>
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+ <td class="description last"><p>ID of the channel.</p></td>
1573
+ </tr>
1574
+
1575
+
1576
+ </tbody>
1577
+ </table>
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+ <h5 class="h5-returns">Returns:</h5>
1595
+
1596
+
1597
+
1598
+
1599
+ <dl class="param-type">
1600
+ <dt>
1601
+ Type
1602
+ </dt>
1603
+ <dd>
1604
+
1605
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1606
+
1607
+
1608
+
1609
+ </dd>
1610
+ </dl>
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+ <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>
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+ <dl class="details">
1629
+
1630
+ <dt class="tag-description">Description:</dt>
1631
+ <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw 7TV emotes data for a channel.</p></li></ul></dd>
1632
+
1633
+
1634
+
1635
+ <dt class="tag-source">Source:</dt>
1636
+ <dd class="tag-source"><ul class="dummy"><li>
1637
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line181">line 181</a>
1638
+ </li></ul></dd>
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+ </dl>
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+ <h5 class="h5-parameters">Parameters:</h5>
1685
+
1686
+
1687
+ <table class="params">
1688
+ <thead>
1689
+ <tr>
1690
+
1691
+ <th>Name</th>
1692
+
1693
+
1694
+ <th>Type</th>
1695
+
1696
+
1697
+ <th>Attributes</th>
1698
+
1699
+
1700
+
1701
+ <th>Default</th>
1702
+
1703
+
1704
+ <th class="last">Description</th>
1705
+ </tr>
1706
+ </thead>
1707
+
1708
+ <tbody>
1709
+
1710
+
1711
+ <tr>
1712
+
1713
+ <td class="name"><code>id</code></td>
1714
+
1715
+
1716
+ <td class="type">
1717
+
1718
+
1719
+ <span class="param-type">int</span>
1720
+
1721
+
1722
+
1723
+
1724
+ </td>
1725
+
1726
+
1727
+ <td class="attributes">
1728
+
1729
+ &lt;optional><br>
1730
+
1731
+
1732
+
1733
+
1734
+
1735
+ </td>
1736
+
1737
+
1738
+
1739
+ <td class="default">
1740
+
1741
+ <code>null</code>
1742
+
1743
+ </td>
1744
+
1745
+
1746
+ <td class="description last"><p>ID of the channel.</p></td>
1747
+ </tr>
1748
+
1749
+
1750
+ </tbody>
1751
+ </table>
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+ <h5 class="h5-returns">Returns:</h5>
1769
+
1770
+
1771
+
1772
+
1773
+ <dl class="param-type">
1774
+ <dt>
1775
+ Type
1776
+ </dt>
1777
+ <dd>
1778
+
1779
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1780
+
1781
+
1782
+
1783
+ </dd>
1784
+ </dl>
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+ <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>
1796
+
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+ <dl class="details">
1803
+
1804
+ <dt class="tag-description">Description:</dt>
1805
+ <dd class="tag-description"><ul class="dummy"><li><p>Gets the raw Twitch emotes data for a channel.</p></li></ul></dd>
1806
+
1807
+
1808
+
1809
+ <dt class="tag-source">Source:</dt>
1810
+ <dd class="tag-source"><ul class="dummy"><li>
1811
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line63">line 63</a>
1812
+ </li></ul></dd>
1813
+
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+ </dl>
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+ <h5 class="h5-parameters">Parameters:</h5>
1859
+
1860
+
1861
+ <table class="params">
1862
+ <thead>
1863
+ <tr>
1864
+
1865
+ <th>Name</th>
1866
+
1867
+
1868
+ <th>Type</th>
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+ <th class="last">Description</th>
1875
+ </tr>
1876
+ </thead>
1877
+
1878
+ <tbody>
1879
+
1880
+
1881
+ <tr>
1882
+
1883
+ <td class="name"><code>id</code></td>
1884
+
1885
+
1886
+ <td class="type">
1887
+
1888
+
1889
+ <span class="param-type">int</span>
1890
+
1891
+
1892
+
1893
+
1894
+ </td>
1895
+
1896
+
1897
+
1898
+
1899
+
1900
+ <td class="description last"><p>ID of the channel.</p></td>
1901
+ </tr>
1902
+
1903
+
1904
+ </tbody>
1905
+ </table>
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+
1920
+
1921
+
1922
+ <h5 class="h5-returns">Returns:</h5>
1923
+
1924
+
1925
+
1926
+
1927
+ <dl class="param-type">
1928
+ <dt>
1929
+ Type
1930
+ </dt>
1931
+ <dd>
1932
+
1933
+ <span class="param-type">Promise.&lt;Array.&lt;Object>></span>
1934
+
1935
+
1936
+
1937
+ </dd>
1938
+ </dl>
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+ <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>
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+ <dl class="details">
1957
+
1958
+ <dt class="tag-description">Description:</dt>
1959
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetches the BTTV emotes for a channel.<br>
1960
+ Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
1961
+
1962
+
1963
+
1964
+ <dt class="tag-source">Source:</dt>
1965
+ <dd class="tag-source"><ul class="dummy"><li>
1966
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line233">line 233</a>
1967
+ </li></ul></dd>
1968
+
1969
+
1970
+
1971
+
1972
+
1973
+
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+ </dl>
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+ <h5 class="h5-parameters">Parameters:</h5>
2014
+
2015
+
2016
+ <table class="params">
2017
+ <thead>
2018
+ <tr>
2019
+
2020
+ <th>Name</th>
2021
+
2022
+
2023
+ <th>Type</th>
2024
+
2025
+
2026
+ <th>Attributes</th>
2027
+
2028
+
2029
+
2030
+ <th>Default</th>
2031
+
2032
+
2033
+ <th class="last">Description</th>
2034
+ </tr>
2035
+ </thead>
2036
+
2037
+ <tbody>
2038
+
2039
+
2040
+ <tr>
2041
+
2042
+ <td class="name"><code>channel</code></td>
2043
+
2044
+
2045
+ <td class="type">
2046
+
2047
+
2048
+ <span class="param-type">int</span>
2049
+
2050
+
2051
+
2052
+
2053
+ </td>
2054
+
2055
+
2056
+ <td class="attributes">
2057
+
2058
+ &lt;optional><br>
2059
+
2060
+
2061
+
2062
+
2063
+
2064
+ </td>
2065
+
2066
+
2067
+
2068
+ <td class="default">
2069
+
2070
+ <code>null</code>
2071
+
2072
+ </td>
2073
+
2074
+
2075
+ <td class="description last"><p>ID of the channel.</p></td>
2076
+ </tr>
2077
+
2078
+
2079
+ </tbody>
2080
+ </table>
2081
+
2082
+
2083
+
2084
+
2085
+
2086
+
2087
+
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+
2094
+
2095
+
2096
+
2097
+ <h5 class="h5-returns">Returns:</h5>
2098
+
2099
+
2100
+
2101
+
2102
+ <dl class="param-type">
2103
+ <dt>
2104
+ Type
2105
+ </dt>
2106
+ <dd>
2107
+
2108
+ <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="BTTVEmote.html">BTTVEmote</a>>></span>
2109
+
2110
+
2111
+
2112
+ </dd>
2113
+ </dl>
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+ <h4 class="name" id="fetchFFZEmotes"><span class="type-signature"></span>fetchFFZEmotes<span class="signature">(channel)</span><span class="type-signature"> &rarr; {Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>>}</span></h4>
2125
+
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+ <dl class="details">
2132
+
2133
+ <dt class="tag-description">Description:</dt>
2134
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetches the FFZ emotes for a channel.</p></li></ul></dd>
2135
+
2136
+
2137
+
2138
+ <dt class="tag-source">Source:</dt>
2139
+ <dd class="tag-source"><ul class="dummy"><li>
2140
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line248">line 248</a>
2141
+ </li></ul></dd>
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+ </dl>
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+ <h5 class="h5-parameters">Parameters:</h5>
2188
+
2189
+
2190
+ <table class="params">
2191
+ <thead>
2192
+ <tr>
2193
+
2194
+ <th>Name</th>
2195
+
2196
+
2197
+ <th>Type</th>
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+ <th class="last">Description</th>
2204
+ </tr>
2205
+ </thead>
2206
+
2207
+ <tbody>
2208
+
2209
+
2210
+ <tr>
2211
+
2212
+ <td class="name"><code>channel</code></td>
2213
+
2214
+
2215
+ <td class="type">
2216
+
2217
+
2218
+ <span class="param-type">int</span>
2219
+
2220
+
2221
+
2222
+
2223
+ </td>
2224
+
2225
+
2226
+
2227
+
2228
+
2229
+ <td class="description last"><p>ID of the channel.</p></td>
2230
+ </tr>
2231
+
2232
+
2233
+ </tbody>
2234
+ </table>
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+ <h5 class="h5-returns">Returns:</h5>
2252
+
2253
+
2254
+
2255
+
2256
+ <dl class="param-type">
2257
+ <dt>
2258
+ Type
2259
+ </dt>
2260
+ <dd>
2261
+
2262
+ <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="FFZEmote.html">FFZEmote</a>>></span>
2263
+
2264
+
2265
+
2266
+ </dd>
2267
+ </dl>
2268
+
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+ <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>
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+ <dl class="details">
2286
+
2287
+ <dt class="tag-description">Description:</dt>
2288
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetches the 7TV emotes for a channel.</p></li></ul></dd>
2289
+
2290
+
2291
+
2292
+ <dt class="tag-source">Source:</dt>
2293
+ <dd class="tag-source"><ul class="dummy"><li>
2294
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line264">line 264</a>
2295
+ </li></ul></dd>
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+
2305
+
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+ </dl>
2328
+
2329
+
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+ <h5 class="h5-parameters">Parameters:</h5>
2342
+
2343
+
2344
+ <table class="params">
2345
+ <thead>
2346
+ <tr>
2347
+
2348
+ <th>Name</th>
2349
+
2350
+
2351
+ <th>Type</th>
2352
+
2353
+
2354
+ <th>Attributes</th>
2355
+
2356
+
2357
+
2358
+ <th>Default</th>
2359
+
2360
+
2361
+ <th class="last">Description</th>
2362
+ </tr>
2363
+ </thead>
2364
+
2365
+ <tbody>
2366
+
2367
+
2368
+ <tr>
2369
+
2370
+ <td class="name"><code>channel</code></td>
2371
+
2372
+
2373
+ <td class="type">
2374
+
2375
+
2376
+ <span class="param-type">int</span>
2377
+
2378
+
2379
+
2380
+
2381
+ </td>
2382
+
2383
+
2384
+ <td class="attributes">
2385
+
2386
+ &lt;optional><br>
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+ </td>
2393
+
2394
+
2395
+
2396
+ <td class="default">
2397
+
2398
+ <code>null</code>
2399
+
2400
+ </td>
2401
+
2402
+
2403
+ <td class="description last"><p>ID of the channel.</p></td>
2404
+ </tr>
2405
+
2406
+
2407
+
2408
+ <tr>
2409
+
2410
+ <td class="name"><code>format</code></td>
2411
+
2412
+
2413
+ <td class="type">
2414
+
2415
+
2416
+ <span class="param-type">'webp'</span>
2417
+ |
2418
+
2419
+ <span class="param-type">'avif'</span>
2420
+
2421
+
2422
+
2423
+
2424
+ </td>
2425
+
2426
+
2427
+ <td class="attributes">
2428
+
2429
+ &lt;optional><br>
2430
+
2431
+
2432
+
2433
+
2434
+
2435
+ </td>
2436
+
2437
+
2438
+
2439
+ <td class="default">
2440
+
2441
+ <code>'webp'</code>
2442
+
2443
+ </td>
2444
+
2445
+
2446
+ <td class="description last"><p>The type file format to use (webp/avif).</p></td>
2447
+ </tr>
2448
+
2449
+
2450
+ </tbody>
2451
+ </table>
2452
+
2453
+
2454
+
2455
+
2456
+
2457
+
2458
+
2459
+
2460
+
2461
+
2462
+
2463
+
2464
+
2465
+
2466
+
2467
+
2468
+ <h5 class="h5-returns">Returns:</h5>
2469
+
2470
+
2471
+
2472
+
2473
+ <dl class="param-type">
2474
+ <dt>
2475
+ Type
2476
+ </dt>
2477
+ <dd>
2478
+
2479
+ <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="SevenTVEmote.html">SevenTVEmote</a>>></span>
2480
+
2481
+
2482
+
2483
+ </dd>
2484
+ </dl>
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+
2493
+
2494
+
2495
+ <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>
2496
+
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+ <dl class="details">
2503
+
2504
+ <dt class="tag-description">Description:</dt>
2505
+ <dd class="tag-description"><ul class="dummy"><li><p>Fetches the Twitch emotes for a channel.<br>
2506
+ Use <code>null</code> for the global emotes channel.</p></li></ul></dd>
2507
+
2508
+
2509
+
2510
+ <dt class="tag-source">Source:</dt>
2511
+ <dd class="tag-source"><ul class="dummy"><li>
2512
+ <a href="struct_EmoteFetcher.js.html">struct/EmoteFetcher.js</a>, <a href="struct_EmoteFetcher.js.html#line217">line 217</a>
2513
+ </li></ul></dd>
2514
+
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
+ </dl>
2546
+
2547
+
2548
+
2549
+
2550
+
2551
+
2552
+
2553
+
2554
+
2555
+
2556
+
2557
+
2558
+
2559
+ <h5 class="h5-parameters">Parameters:</h5>
2560
+
2561
+
2562
+ <table class="params">
2563
+ <thead>
2564
+ <tr>
2565
+
2566
+ <th>Name</th>
2567
+
2568
+
2569
+ <th>Type</th>
2570
+
2571
+
2572
+ <th>Attributes</th>
2573
+
2574
+
2575
+
2576
+ <th>Default</th>
2577
+
2578
+
2579
+ <th class="last">Description</th>
2580
+ </tr>
2581
+ </thead>
2582
+
2583
+ <tbody>
2584
+
2585
+
2586
+ <tr>
2587
+
2588
+ <td class="name"><code>channel</code></td>
2589
+
2590
+
2591
+ <td class="type">
2592
+
2593
+
2594
+ <span class="param-type">int</span>
2595
+
2596
+
2597
+
2598
+
2599
+ </td>
2600
+
2601
+
2602
+ <td class="attributes">
2603
+
2604
+ &lt;optional><br>
2605
+
2606
+
2607
+
2608
+
2609
+
2610
+ </td>
2611
+
2612
+
2613
+
2614
+ <td class="default">
2615
+
2616
+ <code>null</code>
2617
+
2618
+ </td>
2619
+
2620
+
2621
+ <td class="description last"><p>ID of the channel.</p></td>
2622
+ </tr>
2623
+
2624
+
2625
+ </tbody>
2626
+ </table>
2627
+
2628
+
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+
2636
+
2637
+
2638
+
2639
+
2640
+
2641
+
2642
+
2643
+ <h5 class="h5-returns">Returns:</h5>
2644
+
2645
+
2646
+
2647
+
2648
+ <dl class="param-type">
2649
+ <dt>
2650
+ Type
2651
+ </dt>
2652
+ <dd>
2653
+
2654
+ <span class="param-type">Promise.&lt;<a href="Collection.html">Collection</a>.&lt;string, <a href="TwitchEmote.html">TwitchEmote</a>>></span>
2655
+
2656
+
2657
+
2658
+ </dd>
2659
+ </dl>
2660
+
2661
+
2662
+
2663
+
2664
+
2665
+
2666
+
2667
+
2668
+
2669
+
2670
+
2671
+ </article>
2672
+
2673
+ </section>
2674
+
2675
+
2676
+
2677
+
2678
+
2679
+
2680
+ </div>
2681
+
2682
+ <br class="clear">
2683
+
2684
+ <footer>
2685
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2686
+ </footer>
2687
+
2688
+ <script>prettyPrint();</script>
2689
+ <script src="scripts/polyfill.js"></script>
2690
+ <script src="scripts/linenumber.js"></script>
2691
+
2692
+
2693
+
2694
+ </body>
2695
2695
  </html>