ts-twitch-api 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +148 -148
- package/dist/index.d.cts +194 -401
- package/dist/index.d.ts +194 -401
- package/dist/index.js +148 -148
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,10 +52,10 @@ var TwitchApi = class {
|
|
|
52
52
|
body,
|
|
53
53
|
requiresAuth = true,
|
|
54
54
|
options: {
|
|
55
|
-
clientId
|
|
56
|
-
accessToken
|
|
55
|
+
clientId,
|
|
56
|
+
accessToken,
|
|
57
57
|
requestInit = {}
|
|
58
|
-
}
|
|
58
|
+
} = {}
|
|
59
59
|
}) {
|
|
60
60
|
const url = params ? `${BASE_URL}${path}?${getSearchParams(params)}` : `${BASE_URL}${path}`;
|
|
61
61
|
const options = { ...requestInit, method };
|
|
@@ -127,7 +127,7 @@ var TwitchApi = class {
|
|
|
127
127
|
*
|
|
128
128
|
* @see https://dev.twitch.tv/docs/api/reference#start-commercial
|
|
129
129
|
*/
|
|
130
|
-
startCommercial: async (body, options) => this.callApi({
|
|
130
|
+
startCommercial: async (body, options = {}) => this.callApi({
|
|
131
131
|
path: "/channels/commercial",
|
|
132
132
|
method: "POST",
|
|
133
133
|
body,
|
|
@@ -158,7 +158,7 @@ var TwitchApi = class {
|
|
|
158
158
|
*
|
|
159
159
|
* @see https://dev.twitch.tv/docs/api/reference#get-ad-schedule
|
|
160
160
|
*/
|
|
161
|
-
getAdSchedule: async (params, options) => this.callApi({
|
|
161
|
+
getAdSchedule: async (params, options = {}) => this.callApi({
|
|
162
162
|
path: "/channels/ads",
|
|
163
163
|
params,
|
|
164
164
|
options
|
|
@@ -194,7 +194,7 @@ var TwitchApi = class {
|
|
|
194
194
|
*
|
|
195
195
|
* @see https://dev.twitch.tv/docs/api/reference#snooze-next-ad
|
|
196
196
|
*/
|
|
197
|
-
snoozeNextAd: async (params, options) => this.callApi({
|
|
197
|
+
snoozeNextAd: async (params, options = {}) => this.callApi({
|
|
198
198
|
path: "/channels/ads/schedule/snooze",
|
|
199
199
|
method: "POST",
|
|
200
200
|
params,
|
|
@@ -241,7 +241,7 @@ var TwitchApi = class {
|
|
|
241
241
|
*
|
|
242
242
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-analytics
|
|
243
243
|
*/
|
|
244
|
-
getExtensionAnalytics: async (params = null, options) => this.callApi({
|
|
244
|
+
getExtensionAnalytics: async (params = null, options = {}) => this.callApi({
|
|
245
245
|
path: "/analytics/extensions",
|
|
246
246
|
params,
|
|
247
247
|
options
|
|
@@ -285,7 +285,7 @@ var TwitchApi = class {
|
|
|
285
285
|
*
|
|
286
286
|
* @see https://dev.twitch.tv/docs/api/reference#get-game-analytics
|
|
287
287
|
*/
|
|
288
|
-
getGameAnalytics: async (params = null, options) => this.callApi({
|
|
288
|
+
getGameAnalytics: async (params = null, options = {}) => this.callApi({
|
|
289
289
|
path: "/analytics/games",
|
|
290
290
|
params,
|
|
291
291
|
options
|
|
@@ -326,7 +326,7 @@ var TwitchApi = class {
|
|
|
326
326
|
*
|
|
327
327
|
* @see https://dev.twitch.tv/docs/api/reference#get-bits-leaderboard
|
|
328
328
|
*/
|
|
329
|
-
getBitsLeaderboard: async (params = null, options) => this.callApi({
|
|
329
|
+
getBitsLeaderboard: async (params = null, options = {}) => this.callApi({
|
|
330
330
|
path: "/bits/leaderboard",
|
|
331
331
|
params,
|
|
332
332
|
options
|
|
@@ -355,7 +355,7 @@ var TwitchApi = class {
|
|
|
355
355
|
*
|
|
356
356
|
* @see https://dev.twitch.tv/docs/api/reference#get-cheermotes
|
|
357
357
|
*/
|
|
358
|
-
getCheermotes: async (params = null, options) => this.callApi({
|
|
358
|
+
getCheermotes: async (params = null, options = {}) => this.callApi({
|
|
359
359
|
path: "/bits/cheermotes",
|
|
360
360
|
params,
|
|
361
361
|
options
|
|
@@ -396,7 +396,7 @@ var TwitchApi = class {
|
|
|
396
396
|
*
|
|
397
397
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-transactions
|
|
398
398
|
*/
|
|
399
|
-
getExtensionTransactions: async (params, options) => this.callApi({
|
|
399
|
+
getExtensionTransactions: async (params, options = {}) => this.callApi({
|
|
400
400
|
path: "/extensions/transactions",
|
|
401
401
|
params,
|
|
402
402
|
options
|
|
@@ -440,7 +440,7 @@ var TwitchApi = class {
|
|
|
440
440
|
*
|
|
441
441
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-information
|
|
442
442
|
*/
|
|
443
|
-
getChannelInformation: async (params, options) => this.callApi({
|
|
443
|
+
getChannelInformation: async (params, options = {}) => this.callApi({
|
|
444
444
|
path: "/channels",
|
|
445
445
|
params,
|
|
446
446
|
options
|
|
@@ -502,7 +502,7 @@ var TwitchApi = class {
|
|
|
502
502
|
*
|
|
503
503
|
* @see https://dev.twitch.tv/docs/api/reference#modify-channel-information
|
|
504
504
|
*/
|
|
505
|
-
modifyChannelInformation: async (params, body = null, options) => this.callApi({
|
|
505
|
+
modifyChannelInformation: async (params, body = null, options = {}) => this.callApi({
|
|
506
506
|
path: "/channels",
|
|
507
507
|
method: "PATCH",
|
|
508
508
|
params,
|
|
@@ -524,7 +524,7 @@ var TwitchApi = class {
|
|
|
524
524
|
*
|
|
525
525
|
* _200 OK_
|
|
526
526
|
*
|
|
527
|
-
* Successfully retrieved the broadcaster
|
|
527
|
+
* Successfully retrieved the broadcaster's list of editors.
|
|
528
528
|
*
|
|
529
529
|
* _400 Bad Request_
|
|
530
530
|
*
|
|
@@ -540,7 +540,7 @@ var TwitchApi = class {
|
|
|
540
540
|
*
|
|
541
541
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-editors
|
|
542
542
|
*/
|
|
543
|
-
getChannelEditors: async (params, options) => this.callApi({
|
|
543
|
+
getChannelEditors: async (params, options = {}) => this.callApi({
|
|
544
544
|
path: "/channels/editors",
|
|
545
545
|
params,
|
|
546
546
|
options
|
|
@@ -560,7 +560,7 @@ var TwitchApi = class {
|
|
|
560
560
|
*
|
|
561
561
|
* _200 OK_
|
|
562
562
|
*
|
|
563
|
-
* Successfully retrieved the broadcaster
|
|
563
|
+
* Successfully retrieved the broadcaster's list of followers.
|
|
564
564
|
*
|
|
565
565
|
* _400 Bad Request_
|
|
566
566
|
*
|
|
@@ -582,7 +582,7 @@ var TwitchApi = class {
|
|
|
582
582
|
*
|
|
583
583
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-channels
|
|
584
584
|
*/
|
|
585
|
-
getFollowedChannels: async (params, options) => this.callApi({
|
|
585
|
+
getFollowedChannels: async (params, options = {}) => this.callApi({
|
|
586
586
|
path: "/channels/followed",
|
|
587
587
|
params,
|
|
588
588
|
options
|
|
@@ -627,7 +627,7 @@ var TwitchApi = class {
|
|
|
627
627
|
*
|
|
628
628
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-followers
|
|
629
629
|
*/
|
|
630
|
-
getChannelFollowers: async (params, options) => this.callApi({
|
|
630
|
+
getChannelFollowers: async (params, options = {}) => this.callApi({
|
|
631
631
|
path: "/channels/followers",
|
|
632
632
|
params,
|
|
633
633
|
options
|
|
@@ -680,7 +680,7 @@ var TwitchApi = class {
|
|
|
680
680
|
*
|
|
681
681
|
* @see https://dev.twitch.tv/docs/api/reference#create-custom-rewards
|
|
682
682
|
*/
|
|
683
|
-
createCustomRewards: async (params, body, options) => this.callApi({
|
|
683
|
+
createCustomRewards: async (params, body, options = {}) => this.callApi({
|
|
684
684
|
path: "/channel_points/custom_rewards",
|
|
685
685
|
method: "POST",
|
|
686
686
|
params,
|
|
@@ -731,7 +731,7 @@ var TwitchApi = class {
|
|
|
731
731
|
*
|
|
732
732
|
* @see https://dev.twitch.tv/docs/api/reference#delete-custom-reward
|
|
733
733
|
*/
|
|
734
|
-
deleteCustomReward: async (params, options) => this.callApi({
|
|
734
|
+
deleteCustomReward: async (params, options = {}) => this.callApi({
|
|
735
735
|
path: "/channel_points/custom_rewards",
|
|
736
736
|
method: "DELETE",
|
|
737
737
|
params,
|
|
@@ -780,7 +780,7 @@ var TwitchApi = class {
|
|
|
780
780
|
*
|
|
781
781
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward
|
|
782
782
|
*/
|
|
783
|
-
getCustomReward: async (params, options) => this.callApi({
|
|
783
|
+
getCustomReward: async (params, options = {}) => this.callApi({
|
|
784
784
|
path: "/channel_points/custom_rewards",
|
|
785
785
|
params,
|
|
786
786
|
options
|
|
@@ -838,7 +838,7 @@ var TwitchApi = class {
|
|
|
838
838
|
*
|
|
839
839
|
* @see https://dev.twitch.tv/docs/api/reference#update-custom-reward
|
|
840
840
|
*/
|
|
841
|
-
updateCustomReward: async (params, body = null, options) => this.callApi({
|
|
841
|
+
updateCustomReward: async (params, body = null, options = {}) => this.callApi({
|
|
842
842
|
path: "/channel_points/custom_rewards",
|
|
843
843
|
method: "PATCH",
|
|
844
844
|
params,
|
|
@@ -890,7 +890,7 @@ var TwitchApi = class {
|
|
|
890
890
|
*
|
|
891
891
|
* @see https://dev.twitch.tv/docs/api/reference#get-custom-reward-redemption
|
|
892
892
|
*/
|
|
893
|
-
getCustomRewardRedemption: async (params, options) => this.callApi({
|
|
893
|
+
getCustomRewardRedemption: async (params, options = {}) => this.callApi({
|
|
894
894
|
path: "/channel_points/custom_rewards/redemptions",
|
|
895
895
|
params,
|
|
896
896
|
options
|
|
@@ -940,7 +940,7 @@ var TwitchApi = class {
|
|
|
940
940
|
*
|
|
941
941
|
* @see https://dev.twitch.tv/docs/api/reference#update-redemption-status
|
|
942
942
|
*/
|
|
943
|
-
updateRedemptionStatus: async (params, body, options) => this.callApi({
|
|
943
|
+
updateRedemptionStatus: async (params, body, options = {}) => this.callApi({
|
|
944
944
|
path: "/channel_points/custom_rewards/redemptions",
|
|
945
945
|
method: "PATCH",
|
|
946
946
|
params,
|
|
@@ -987,7 +987,7 @@ var TwitchApi = class {
|
|
|
987
987
|
*
|
|
988
988
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign
|
|
989
989
|
*/
|
|
990
|
-
getCharityCampaign: async (params, options) => this.callApi({
|
|
990
|
+
getCharityCampaign: async (params, options = {}) => this.callApi({
|
|
991
991
|
path: "/charity/campaigns",
|
|
992
992
|
params,
|
|
993
993
|
options
|
|
@@ -1030,7 +1030,7 @@ var TwitchApi = class {
|
|
|
1030
1030
|
*
|
|
1031
1031
|
* @see https://dev.twitch.tv/docs/api/reference#get-charity-campaign-donations
|
|
1032
1032
|
*/
|
|
1033
|
-
getCharityCampaignDonations: async (params, options) => this.callApi({
|
|
1033
|
+
getCharityCampaignDonations: async (params, options = {}) => this.callApi({
|
|
1034
1034
|
path: "/charity/donations",
|
|
1035
1035
|
params,
|
|
1036
1036
|
options
|
|
@@ -1079,7 +1079,7 @@ var TwitchApi = class {
|
|
|
1079
1079
|
*
|
|
1080
1080
|
* @see https://dev.twitch.tv/docs/api/reference#get-chatters
|
|
1081
1081
|
*/
|
|
1082
|
-
getChatters: async (params, options) => this.callApi({
|
|
1082
|
+
getChatters: async (params, options = {}) => this.callApi({
|
|
1083
1083
|
path: "/chat/chatters",
|
|
1084
1084
|
params,
|
|
1085
1085
|
options
|
|
@@ -1103,7 +1103,7 @@ var TwitchApi = class {
|
|
|
1103
1103
|
*
|
|
1104
1104
|
* _200 OK_
|
|
1105
1105
|
*
|
|
1106
|
-
* Successfully retrieved broadcaster
|
|
1106
|
+
* Successfully retrieved broadcaster's list of custom emotes.
|
|
1107
1107
|
*
|
|
1108
1108
|
* _400 Bad Request_
|
|
1109
1109
|
*
|
|
@@ -1117,7 +1117,7 @@ var TwitchApi = class {
|
|
|
1117
1117
|
*
|
|
1118
1118
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-emotes
|
|
1119
1119
|
*/
|
|
1120
|
-
getChannelEmotes: async (params, options) => this.callApi({
|
|
1120
|
+
getChannelEmotes: async (params, options = {}) => this.callApi({
|
|
1121
1121
|
path: "/chat/emotes",
|
|
1122
1122
|
params,
|
|
1123
1123
|
options
|
|
@@ -1143,7 +1143,7 @@ var TwitchApi = class {
|
|
|
1143
1143
|
*
|
|
1144
1144
|
* _200 OK_
|
|
1145
1145
|
*
|
|
1146
|
-
* Successfully retrieved Twitch
|
|
1146
|
+
* Successfully retrieved Twitch's list of global emotes.
|
|
1147
1147
|
*
|
|
1148
1148
|
* _401 Unauthorized_
|
|
1149
1149
|
*
|
|
@@ -1153,7 +1153,7 @@ var TwitchApi = class {
|
|
|
1153
1153
|
*
|
|
1154
1154
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-emotes
|
|
1155
1155
|
*/
|
|
1156
|
-
getGlobalEmotes: async (options) => this.callApi({
|
|
1156
|
+
getGlobalEmotes: async (options = {}) => this.callApi({
|
|
1157
1157
|
path: "/chat/emotes/global",
|
|
1158
1158
|
options
|
|
1159
1159
|
}),
|
|
@@ -1191,7 +1191,7 @@ var TwitchApi = class {
|
|
|
1191
1191
|
*
|
|
1192
1192
|
* @see https://dev.twitch.tv/docs/api/reference#get-emote-sets
|
|
1193
1193
|
*/
|
|
1194
|
-
getEmoteSets: async (params, options) => this.callApi({
|
|
1194
|
+
getEmoteSets: async (params, options = {}) => this.callApi({
|
|
1195
1195
|
path: "/chat/emotes/set",
|
|
1196
1196
|
params,
|
|
1197
1197
|
options
|
|
@@ -1225,7 +1225,7 @@ var TwitchApi = class {
|
|
|
1225
1225
|
*
|
|
1226
1226
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-chat-badges
|
|
1227
1227
|
*/
|
|
1228
|
-
getChannelChatBadges: async (params, options) => this.callApi({
|
|
1228
|
+
getChannelChatBadges: async (params, options = {}) => this.callApi({
|
|
1229
1229
|
path: "/chat/badges",
|
|
1230
1230
|
params,
|
|
1231
1231
|
options
|
|
@@ -1259,7 +1259,7 @@ var TwitchApi = class {
|
|
|
1259
1259
|
*
|
|
1260
1260
|
* @see https://dev.twitch.tv/docs/api/reference#get-global-chat-badges
|
|
1261
1261
|
*/
|
|
1262
|
-
getGlobalChatBadges: async (options) => this.callApi({
|
|
1262
|
+
getGlobalChatBadges: async (options = {}) => this.callApi({
|
|
1263
1263
|
path: "/chat/badges/global",
|
|
1264
1264
|
options
|
|
1265
1265
|
}),
|
|
@@ -1294,7 +1294,7 @@ var TwitchApi = class {
|
|
|
1294
1294
|
*
|
|
1295
1295
|
* @see https://dev.twitch.tv/docs/api/reference#get-chat-settings
|
|
1296
1296
|
*/
|
|
1297
|
-
getChatSettings: async (params, options) => this.callApi({
|
|
1297
|
+
getChatSettings: async (params, options = {}) => this.callApi({
|
|
1298
1298
|
path: "/chat/settings",
|
|
1299
1299
|
params,
|
|
1300
1300
|
options
|
|
@@ -1348,7 +1348,7 @@ var TwitchApi = class {
|
|
|
1348
1348
|
*
|
|
1349
1349
|
* @see https://dev.twitch.tv/docs/api/reference#update-chat-settings
|
|
1350
1350
|
*/
|
|
1351
|
-
updateChatSettings: async (params, body = null, options) => this.callApi({
|
|
1351
|
+
updateChatSettings: async (params, body = null, options = {}) => this.callApi({
|
|
1352
1352
|
path: "/chat/settings",
|
|
1353
1353
|
method: "PATCH",
|
|
1354
1354
|
params,
|
|
@@ -1388,7 +1388,7 @@ var TwitchApi = class {
|
|
|
1388
1388
|
*
|
|
1389
1389
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-announcement
|
|
1390
1390
|
*/
|
|
1391
|
-
sendChatAnnouncement: async (params, body, options) => this.callApi({
|
|
1391
|
+
sendChatAnnouncement: async (params, body, options = {}) => this.callApi({
|
|
1392
1392
|
path: "/chat/announcements",
|
|
1393
1393
|
method: "POST",
|
|
1394
1394
|
params,
|
|
@@ -1447,7 +1447,7 @@ var TwitchApi = class {
|
|
|
1447
1447
|
*
|
|
1448
1448
|
* @see https://dev.twitch.tv/docs/api/reference#send-a-shoutout
|
|
1449
1449
|
*/
|
|
1450
|
-
sendShoutout: async (params, options) => this.callApi({
|
|
1450
|
+
sendShoutout: async (params, options = {}) => this.callApi({
|
|
1451
1451
|
path: "/chat/shoutouts",
|
|
1452
1452
|
method: "POST",
|
|
1453
1453
|
params,
|
|
@@ -1497,7 +1497,7 @@ var TwitchApi = class {
|
|
|
1497
1497
|
*
|
|
1498
1498
|
* @see https://dev.twitch.tv/docs/api/reference#send-chat-message
|
|
1499
1499
|
*/
|
|
1500
|
-
sendChatMessage: async (body, options) => this.callApi({
|
|
1500
|
+
sendChatMessage: async (body, options = {}) => this.callApi({
|
|
1501
1501
|
path: "/chat/messages",
|
|
1502
1502
|
method: "POST",
|
|
1503
1503
|
body,
|
|
@@ -1532,7 +1532,7 @@ var TwitchApi = class {
|
|
|
1532
1532
|
*
|
|
1533
1533
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-chat-color
|
|
1534
1534
|
*/
|
|
1535
|
-
getUserChatColor: async (params, options) => this.callApi({
|
|
1535
|
+
getUserChatColor: async (params, options = {}) => this.callApi({
|
|
1536
1536
|
path: "/chat/color",
|
|
1537
1537
|
params,
|
|
1538
1538
|
options
|
|
@@ -1571,7 +1571,7 @@ var TwitchApi = class {
|
|
|
1571
1571
|
*
|
|
1572
1572
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-chat-color
|
|
1573
1573
|
*/
|
|
1574
|
-
updateUserChatColor: async (params, options) => this.callApi({
|
|
1574
|
+
updateUserChatColor: async (params, options = {}) => this.callApi({
|
|
1575
1575
|
path: "/chat/color",
|
|
1576
1576
|
method: "PUT",
|
|
1577
1577
|
params,
|
|
@@ -1625,7 +1625,7 @@ var TwitchApi = class {
|
|
|
1625
1625
|
*
|
|
1626
1626
|
* @see https://dev.twitch.tv/docs/api/reference#create-clip
|
|
1627
1627
|
*/
|
|
1628
|
-
createClip: async (params, options) => this.callApi({
|
|
1628
|
+
createClip: async (params, options = {}) => this.callApi({
|
|
1629
1629
|
path: "/clips",
|
|
1630
1630
|
method: "POST",
|
|
1631
1631
|
params,
|
|
@@ -1669,7 +1669,7 @@ var TwitchApi = class {
|
|
|
1669
1669
|
*
|
|
1670
1670
|
* @see https://dev.twitch.tv/docs/api/reference#get-clips
|
|
1671
1671
|
*/
|
|
1672
|
-
getClips: async (params = null, options) => this.callApi({
|
|
1672
|
+
getClips: async (params = null, options = {}) => this.callApi({
|
|
1673
1673
|
path: "/clips",
|
|
1674
1674
|
params,
|
|
1675
1675
|
options
|
|
@@ -1699,7 +1699,7 @@ var TwitchApi = class {
|
|
|
1699
1699
|
*
|
|
1700
1700
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduits
|
|
1701
1701
|
*/
|
|
1702
|
-
getConduits: async (options) => this.callApi({
|
|
1702
|
+
getConduits: async (options = {}) => this.callApi({
|
|
1703
1703
|
path: "/eventsub/conduits",
|
|
1704
1704
|
options
|
|
1705
1705
|
}),
|
|
@@ -1734,7 +1734,7 @@ var TwitchApi = class {
|
|
|
1734
1734
|
*
|
|
1735
1735
|
* @see https://dev.twitch.tv/docs/api/reference#create-conduits
|
|
1736
1736
|
*/
|
|
1737
|
-
createConduits: async (body, options) => this.callApi({
|
|
1737
|
+
createConduits: async (body, options = {}) => this.callApi({
|
|
1738
1738
|
path: "/eventsub/conduits",
|
|
1739
1739
|
method: "POST",
|
|
1740
1740
|
body,
|
|
@@ -1773,7 +1773,7 @@ var TwitchApi = class {
|
|
|
1773
1773
|
*
|
|
1774
1774
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduits
|
|
1775
1775
|
*/
|
|
1776
|
-
updateConduits: async (body, options) => this.callApi({
|
|
1776
|
+
updateConduits: async (body, options = {}) => this.callApi({
|
|
1777
1777
|
path: "/eventsub/conduits",
|
|
1778
1778
|
method: "PATCH",
|
|
1779
1779
|
body,
|
|
@@ -1811,7 +1811,7 @@ var TwitchApi = class {
|
|
|
1811
1811
|
*
|
|
1812
1812
|
* @see https://dev.twitch.tv/docs/api/reference#delete-conduit
|
|
1813
1813
|
*/
|
|
1814
|
-
deleteConduit: async (params, options) => this.callApi({
|
|
1814
|
+
deleteConduit: async (params, options = {}) => this.callApi({
|
|
1815
1815
|
path: "/eventsub/conduits",
|
|
1816
1816
|
method: "DELETE",
|
|
1817
1817
|
params,
|
|
@@ -1849,7 +1849,7 @@ var TwitchApi = class {
|
|
|
1849
1849
|
*
|
|
1850
1850
|
* @see https://dev.twitch.tv/docs/api/reference#get-conduit-shards
|
|
1851
1851
|
*/
|
|
1852
|
-
getConduitShards: async (params, options) => this.callApi({
|
|
1852
|
+
getConduitShards: async (params, options = {}) => this.callApi({
|
|
1853
1853
|
path: "/eventsub/conduits/shards",
|
|
1854
1854
|
params,
|
|
1855
1855
|
options
|
|
@@ -1888,7 +1888,7 @@ var TwitchApi = class {
|
|
|
1888
1888
|
*
|
|
1889
1889
|
* @see https://dev.twitch.tv/docs/api/reference#update-conduit-shards
|
|
1890
1890
|
*/
|
|
1891
|
-
updateConduitShards: async (body, options) => this.callApi({
|
|
1891
|
+
updateConduitShards: async (body, options = {}) => this.callApi({
|
|
1892
1892
|
path: "/eventsub/conduits/shards",
|
|
1893
1893
|
method: "PATCH",
|
|
1894
1894
|
body,
|
|
@@ -1921,7 +1921,7 @@ var TwitchApi = class {
|
|
|
1921
1921
|
*
|
|
1922
1922
|
* @see https://dev.twitch.tv/docs/api/reference#get-content-classification-labels
|
|
1923
1923
|
*/
|
|
1924
|
-
getContentClassificationLabels: async (params = null, options) => this.callApi({
|
|
1924
|
+
getContentClassificationLabels: async (params = null, options = {}) => this.callApi({
|
|
1925
1925
|
path: "/content_classification_labels",
|
|
1926
1926
|
params,
|
|
1927
1927
|
options
|
|
@@ -1981,7 +1981,7 @@ var TwitchApi = class {
|
|
|
1981
1981
|
*
|
|
1982
1982
|
* @see https://dev.twitch.tv/docs/api/reference#get-drops-entitlements
|
|
1983
1983
|
*/
|
|
1984
|
-
getDropsEntitlements: async (params = null, options) => this.callApi({
|
|
1984
|
+
getDropsEntitlements: async (params = null, options = {}) => this.callApi({
|
|
1985
1985
|
path: "/entitlements/drops",
|
|
1986
1986
|
params,
|
|
1987
1987
|
options
|
|
@@ -2027,7 +2027,7 @@ var TwitchApi = class {
|
|
|
2027
2027
|
*
|
|
2028
2028
|
* @see https://dev.twitch.tv/docs/api/reference#update-drops-entitlements
|
|
2029
2029
|
*/
|
|
2030
|
-
updateDropsEntitlements: async (body = null, options) => this.callApi({
|
|
2030
|
+
updateDropsEntitlements: async (body = null, options = {}) => this.callApi({
|
|
2031
2031
|
path: "/entitlements/drops",
|
|
2032
2032
|
method: "PATCH",
|
|
2033
2033
|
body,
|
|
@@ -2072,7 +2072,7 @@ var TwitchApi = class {
|
|
|
2072
2072
|
*
|
|
2073
2073
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-configuration-segment
|
|
2074
2074
|
*/
|
|
2075
|
-
getExtensionConfigurationSegment: async (params, options) => this.callApi({
|
|
2075
|
+
getExtensionConfigurationSegment: async (params, options = {}) => this.callApi({
|
|
2076
2076
|
path: "/extensions/configurations",
|
|
2077
2077
|
params,
|
|
2078
2078
|
options
|
|
@@ -2108,7 +2108,7 @@ var TwitchApi = class {
|
|
|
2108
2108
|
*
|
|
2109
2109
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-configuration-segment
|
|
2110
2110
|
*/
|
|
2111
|
-
setExtensionConfigurationSegment: async (body, options) => this.callApi({
|
|
2111
|
+
setExtensionConfigurationSegment: async (body, options = {}) => this.callApi({
|
|
2112
2112
|
path: "/extensions/configurations",
|
|
2113
2113
|
method: "PUT",
|
|
2114
2114
|
body,
|
|
@@ -2146,7 +2146,7 @@ var TwitchApi = class {
|
|
|
2146
2146
|
*
|
|
2147
2147
|
* @see https://dev.twitch.tv/docs/api/reference#set-extension-required-configuration
|
|
2148
2148
|
*/
|
|
2149
|
-
setExtensionRequiredConfiguration: async (params, body, options) => this.callApi({
|
|
2149
|
+
setExtensionRequiredConfiguration: async (params, body, options = {}) => this.callApi({
|
|
2150
2150
|
path: "/extensions/required_configuration",
|
|
2151
2151
|
method: "PUT",
|
|
2152
2152
|
params,
|
|
@@ -2222,7 +2222,7 @@ var TwitchApi = class {
|
|
|
2222
2222
|
*
|
|
2223
2223
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-pubsub-message
|
|
2224
2224
|
*/
|
|
2225
|
-
sendExtensionPubSubMessage: async (body, options) => this.callApi({
|
|
2225
|
+
sendExtensionPubSubMessage: async (body, options = {}) => this.callApi({
|
|
2226
2226
|
path: "/extensions/pubsub",
|
|
2227
2227
|
method: "POST",
|
|
2228
2228
|
body,
|
|
@@ -2264,7 +2264,7 @@ var TwitchApi = class {
|
|
|
2264
2264
|
*
|
|
2265
2265
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-live-channels
|
|
2266
2266
|
*/
|
|
2267
|
-
getExtensionLiveChannels: async (params, options) => this.callApi({
|
|
2267
|
+
getExtensionLiveChannels: async (params, options = {}) => this.callApi({
|
|
2268
2268
|
path: "/extensions/live",
|
|
2269
2269
|
params,
|
|
2270
2270
|
options
|
|
@@ -2298,7 +2298,7 @@ var TwitchApi = class {
|
|
|
2298
2298
|
*
|
|
2299
2299
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-secrets
|
|
2300
2300
|
*/
|
|
2301
|
-
getExtensionSecrets: async (options) => this.callApi({
|
|
2301
|
+
getExtensionSecrets: async (options = {}) => this.callApi({
|
|
2302
2302
|
path: "/extensions/jwt/secrets",
|
|
2303
2303
|
options
|
|
2304
2304
|
}),
|
|
@@ -2332,7 +2332,7 @@ var TwitchApi = class {
|
|
|
2332
2332
|
*
|
|
2333
2333
|
* @see https://dev.twitch.tv/docs/api/reference#create-extension-secret
|
|
2334
2334
|
*/
|
|
2335
|
-
createExtensionSecret: async (params, options) => this.callApi({
|
|
2335
|
+
createExtensionSecret: async (params, options = {}) => this.callApi({
|
|
2336
2336
|
path: "/extensions/jwt/secrets",
|
|
2337
2337
|
method: "POST",
|
|
2338
2338
|
params,
|
|
@@ -2374,7 +2374,7 @@ var TwitchApi = class {
|
|
|
2374
2374
|
*
|
|
2375
2375
|
* @see https://dev.twitch.tv/docs/api/reference#send-extension-chat-message
|
|
2376
2376
|
*/
|
|
2377
|
-
sendExtensionChatMessage: async (params, body, options) => this.callApi({
|
|
2377
|
+
sendExtensionChatMessage: async (params, body, options = {}) => this.callApi({
|
|
2378
2378
|
path: "/extensions/chat",
|
|
2379
2379
|
method: "POST",
|
|
2380
2380
|
params,
|
|
@@ -2415,7 +2415,7 @@ var TwitchApi = class {
|
|
|
2415
2415
|
*
|
|
2416
2416
|
* @see https://dev.twitch.tv/docs/api/reference#get-extensions
|
|
2417
2417
|
*/
|
|
2418
|
-
getExtensions: async (params, options) => this.callApi({
|
|
2418
|
+
getExtensions: async (params, options = {}) => this.callApi({
|
|
2419
2419
|
path: "/extensions",
|
|
2420
2420
|
params,
|
|
2421
2421
|
options
|
|
@@ -2453,7 +2453,7 @@ var TwitchApi = class {
|
|
|
2453
2453
|
*
|
|
2454
2454
|
* @see https://dev.twitch.tv/docs/api/reference#get-released-extensions
|
|
2455
2455
|
*/
|
|
2456
|
-
getReleasedExtensions: async (params, options) => this.callApi({
|
|
2456
|
+
getReleasedExtensions: async (params, options = {}) => this.callApi({
|
|
2457
2457
|
path: "/extensions/released",
|
|
2458
2458
|
params,
|
|
2459
2459
|
options
|
|
@@ -2487,7 +2487,7 @@ var TwitchApi = class {
|
|
|
2487
2487
|
*
|
|
2488
2488
|
* @see https://dev.twitch.tv/docs/api/reference#get-extension-bits-products
|
|
2489
2489
|
*/
|
|
2490
|
-
getExtensionBitsProducts: async (params = null, options) => this.callApi({
|
|
2490
|
+
getExtensionBitsProducts: async (params = null, options = {}) => this.callApi({
|
|
2491
2491
|
path: "/bits/extensions",
|
|
2492
2492
|
params,
|
|
2493
2493
|
options
|
|
@@ -2528,7 +2528,7 @@ var TwitchApi = class {
|
|
|
2528
2528
|
*
|
|
2529
2529
|
* @see https://dev.twitch.tv/docs/api/reference#update-extension-bits-product
|
|
2530
2530
|
*/
|
|
2531
|
-
updateExtensionBitsProduct: async (body, options) => this.callApi({
|
|
2531
|
+
updateExtensionBitsProduct: async (body, options = {}) => this.callApi({
|
|
2532
2532
|
path: "/bits/extensions",
|
|
2533
2533
|
method: "PUT",
|
|
2534
2534
|
body,
|
|
@@ -2592,7 +2592,7 @@ var TwitchApi = class {
|
|
|
2592
2592
|
*
|
|
2593
2593
|
* @see https://dev.twitch.tv/docs/api/reference#create-eventsub-subscription
|
|
2594
2594
|
*/
|
|
2595
|
-
createEventSubSubscription: async (body, options) => this.callApi({
|
|
2595
|
+
createEventSubSubscription: async (body, options = {}) => this.callApi({
|
|
2596
2596
|
path: "/eventsub/subscriptions",
|
|
2597
2597
|
method: "POST",
|
|
2598
2598
|
body,
|
|
@@ -2633,7 +2633,7 @@ var TwitchApi = class {
|
|
|
2633
2633
|
*
|
|
2634
2634
|
* @see https://dev.twitch.tv/docs/api/reference#delete-eventsub-subscription
|
|
2635
2635
|
*/
|
|
2636
|
-
deleteEventSubSubscription: async (params, options) => this.callApi({
|
|
2636
|
+
deleteEventSubSubscription: async (params, options = {}) => this.callApi({
|
|
2637
2637
|
path: "/eventsub/subscriptions",
|
|
2638
2638
|
method: "DELETE",
|
|
2639
2639
|
params,
|
|
@@ -2677,7 +2677,7 @@ var TwitchApi = class {
|
|
|
2677
2677
|
*
|
|
2678
2678
|
* @see https://dev.twitch.tv/docs/api/reference#get-eventsub-subscriptions
|
|
2679
2679
|
*/
|
|
2680
|
-
getEventSubSubscriptions: async (params = null, options) => this.callApi({
|
|
2680
|
+
getEventSubSubscriptions: async (params = null, options = {}) => this.callApi({
|
|
2681
2681
|
path: "/eventsub/subscriptions",
|
|
2682
2682
|
params,
|
|
2683
2683
|
options
|
|
@@ -2714,7 +2714,7 @@ var TwitchApi = class {
|
|
|
2714
2714
|
*
|
|
2715
2715
|
* @see https://dev.twitch.tv/docs/api/reference#get-top-games
|
|
2716
2716
|
*/
|
|
2717
|
-
getTopGames: async (params = null, options) => this.callApi({
|
|
2717
|
+
getTopGames: async (params = null, options = {}) => this.callApi({
|
|
2718
2718
|
path: "/games/top",
|
|
2719
2719
|
params,
|
|
2720
2720
|
options
|
|
@@ -2751,7 +2751,7 @@ var TwitchApi = class {
|
|
|
2751
2751
|
*
|
|
2752
2752
|
* @see https://dev.twitch.tv/docs/api/reference#get-games
|
|
2753
2753
|
*/
|
|
2754
|
-
getGames: async (params = null, options) => this.callApi({
|
|
2754
|
+
getGames: async (params = null, options = {}) => this.callApi({
|
|
2755
2755
|
path: "/games",
|
|
2756
2756
|
params,
|
|
2757
2757
|
options
|
|
@@ -2791,7 +2791,7 @@ var TwitchApi = class {
|
|
|
2791
2791
|
*
|
|
2792
2792
|
* @see https://dev.twitch.tv/docs/api/reference#get-creator-goals
|
|
2793
2793
|
*/
|
|
2794
|
-
getCreatorGoals: async (params, options) => this.callApi({
|
|
2794
|
+
getCreatorGoals: async (params, options = {}) => this.callApi({
|
|
2795
2795
|
path: "/goals",
|
|
2796
2796
|
params,
|
|
2797
2797
|
options
|
|
@@ -2825,7 +2825,7 @@ var TwitchApi = class {
|
|
|
2825
2825
|
*
|
|
2826
2826
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-guest-star-settings
|
|
2827
2827
|
*/
|
|
2828
|
-
getChannelGuestStarSettings: async (params, options) => this.callApi({
|
|
2828
|
+
getChannelGuestStarSettings: async (params, options = {}) => this.callApi({
|
|
2829
2829
|
path: "/guest_star/channel_settings",
|
|
2830
2830
|
params,
|
|
2831
2831
|
options
|
|
@@ -2856,7 +2856,7 @@ var TwitchApi = class {
|
|
|
2856
2856
|
*
|
|
2857
2857
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-guest-star-settings
|
|
2858
2858
|
*/
|
|
2859
|
-
updateChannelGuestStarSettings: async (params, body = null, options) => this.callApi({
|
|
2859
|
+
updateChannelGuestStarSettings: async (params, body = null, options = {}) => this.callApi({
|
|
2860
2860
|
path: "/guest_star/channel_settings",
|
|
2861
2861
|
method: "PUT",
|
|
2862
2862
|
params,
|
|
@@ -2890,7 +2890,7 @@ var TwitchApi = class {
|
|
|
2890
2890
|
*
|
|
2891
2891
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-session
|
|
2892
2892
|
*/
|
|
2893
|
-
getGuestStarSession: async (params, options) => this.callApi({
|
|
2893
|
+
getGuestStarSession: async (params, options = {}) => this.callApi({
|
|
2894
2894
|
path: "/guest_star/session",
|
|
2895
2895
|
params,
|
|
2896
2896
|
options
|
|
@@ -2926,7 +2926,7 @@ var TwitchApi = class {
|
|
|
2926
2926
|
*
|
|
2927
2927
|
* @see https://dev.twitch.tv/docs/api/reference#create-guest-star-session
|
|
2928
2928
|
*/
|
|
2929
|
-
createGuestStarSession: async (params, options) => this.callApi({
|
|
2929
|
+
createGuestStarSession: async (params, options = {}) => this.callApi({
|
|
2930
2930
|
path: "/guest_star/session",
|
|
2931
2931
|
method: "POST",
|
|
2932
2932
|
params,
|
|
@@ -2960,7 +2960,7 @@ var TwitchApi = class {
|
|
|
2960
2960
|
*
|
|
2961
2961
|
* @see https://dev.twitch.tv/docs/api/reference#end-guest-star-session
|
|
2962
2962
|
*/
|
|
2963
|
-
endGuestStarSession: async (params, options) => this.callApi({
|
|
2963
|
+
endGuestStarSession: async (params, options = {}) => this.callApi({
|
|
2964
2964
|
path: "/guest_star/session",
|
|
2965
2965
|
method: "DELETE",
|
|
2966
2966
|
params,
|
|
@@ -2989,7 +2989,7 @@ var TwitchApi = class {
|
|
|
2989
2989
|
*
|
|
2990
2990
|
* @see https://dev.twitch.tv/docs/api/reference#get-guest-star-invites
|
|
2991
2991
|
*/
|
|
2992
|
-
getGuestStarInvites: async (params, options) => this.callApi({
|
|
2992
|
+
getGuestStarInvites: async (params, options = {}) => this.callApi({
|
|
2993
2993
|
path: "/guest_star/invites",
|
|
2994
2994
|
params,
|
|
2995
2995
|
options
|
|
@@ -3025,7 +3025,7 @@ var TwitchApi = class {
|
|
|
3025
3025
|
*
|
|
3026
3026
|
* @see https://dev.twitch.tv/docs/api/reference#send-guest-star-invite
|
|
3027
3027
|
*/
|
|
3028
|
-
sendGuestStarInvite: async (params, options) => this.callApi({
|
|
3028
|
+
sendGuestStarInvite: async (params, options = {}) => this.callApi({
|
|
3029
3029
|
path: "/guest_star/invites",
|
|
3030
3030
|
method: "POST",
|
|
3031
3031
|
params,
|
|
@@ -3060,7 +3060,7 @@ var TwitchApi = class {
|
|
|
3060
3060
|
*
|
|
3061
3061
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-invite
|
|
3062
3062
|
*/
|
|
3063
|
-
deleteGuestStarInvite: async (params, options) => this.callApi({
|
|
3063
|
+
deleteGuestStarInvite: async (params, options = {}) => this.callApi({
|
|
3064
3064
|
path: "/guest_star/invites",
|
|
3065
3065
|
method: "DELETE",
|
|
3066
3066
|
params,
|
|
@@ -3105,7 +3105,7 @@ var TwitchApi = class {
|
|
|
3105
3105
|
*
|
|
3106
3106
|
* @see https://dev.twitch.tv/docs/api/reference#assign-guest-star-slot
|
|
3107
3107
|
*/
|
|
3108
|
-
assignGuestStarSlot: async (params, options) => this.callApi({
|
|
3108
|
+
assignGuestStarSlot: async (params, options = {}) => this.callApi({
|
|
3109
3109
|
path: "/guest_star/slot",
|
|
3110
3110
|
method: "POST",
|
|
3111
3111
|
params,
|
|
@@ -3137,7 +3137,7 @@ var TwitchApi = class {
|
|
|
3137
3137
|
*
|
|
3138
3138
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot
|
|
3139
3139
|
*/
|
|
3140
|
-
updateGuestStarSlot: async (params, options) => this.callApi({
|
|
3140
|
+
updateGuestStarSlot: async (params, options = {}) => this.callApi({
|
|
3141
3141
|
path: "/guest_star/slot",
|
|
3142
3142
|
method: "PATCH",
|
|
3143
3143
|
params,
|
|
@@ -3179,7 +3179,7 @@ var TwitchApi = class {
|
|
|
3179
3179
|
*
|
|
3180
3180
|
* @see https://dev.twitch.tv/docs/api/reference#delete-guest-star-slot
|
|
3181
3181
|
*/
|
|
3182
|
-
deleteGuestStarSlot: async (params, options) => this.callApi({
|
|
3182
|
+
deleteGuestStarSlot: async (params, options = {}) => this.callApi({
|
|
3183
3183
|
path: "/guest_star/slot",
|
|
3184
3184
|
method: "DELETE",
|
|
3185
3185
|
params,
|
|
@@ -3217,7 +3217,7 @@ var TwitchApi = class {
|
|
|
3217
3217
|
*
|
|
3218
3218
|
* @see https://dev.twitch.tv/docs/api/reference#update-guest-star-slot-settings
|
|
3219
3219
|
*/
|
|
3220
|
-
updateGuestStarSlotSettings: async (params, options) => this.callApi({
|
|
3220
|
+
updateGuestStarSlotSettings: async (params, options = {}) => this.callApi({
|
|
3221
3221
|
path: "/guest_star/slot_settings",
|
|
3222
3222
|
method: "PATCH",
|
|
3223
3223
|
params,
|
|
@@ -3254,7 +3254,7 @@ var TwitchApi = class {
|
|
|
3254
3254
|
*
|
|
3255
3255
|
* @see https://dev.twitch.tv/docs/api/reference#get-hype-train-events
|
|
3256
3256
|
*/
|
|
3257
|
-
getHypeTrainEvents: async (params, options) => this.callApi({
|
|
3257
|
+
getHypeTrainEvents: async (params, options = {}) => this.callApi({
|
|
3258
3258
|
path: "/hypetrain/events",
|
|
3259
3259
|
params,
|
|
3260
3260
|
options
|
|
@@ -3315,7 +3315,7 @@ var TwitchApi = class {
|
|
|
3315
3315
|
*
|
|
3316
3316
|
* @see https://dev.twitch.tv/docs/api/reference#check-automod-status
|
|
3317
3317
|
*/
|
|
3318
|
-
checkAutoModStatus: async (params, body, options) => this.callApi({
|
|
3318
|
+
checkAutoModStatus: async (params, body, options = {}) => this.callApi({
|
|
3319
3319
|
path: "/moderation/enforcements/status",
|
|
3320
3320
|
method: "POST",
|
|
3321
3321
|
params,
|
|
@@ -3366,7 +3366,7 @@ var TwitchApi = class {
|
|
|
3366
3366
|
*
|
|
3367
3367
|
* @see https://dev.twitch.tv/docs/api/reference#manage-held-automod-messages
|
|
3368
3368
|
*/
|
|
3369
|
-
manageHeldAutoModMessages: async (body, options) => this.callApi({
|
|
3369
|
+
manageHeldAutoModMessages: async (body, options = {}) => this.callApi({
|
|
3370
3370
|
path: "/moderation/automod/message",
|
|
3371
3371
|
method: "POST",
|
|
3372
3372
|
body,
|
|
@@ -3408,7 +3408,7 @@ var TwitchApi = class {
|
|
|
3408
3408
|
*
|
|
3409
3409
|
* @see https://dev.twitch.tv/docs/api/reference#get-automod-settings
|
|
3410
3410
|
*/
|
|
3411
|
-
getAutoModSettings: async (params, options) => this.callApi({
|
|
3411
|
+
getAutoModSettings: async (params, options = {}) => this.callApi({
|
|
3412
3412
|
path: "/moderation/automod/settings",
|
|
3413
3413
|
params,
|
|
3414
3414
|
options
|
|
@@ -3465,7 +3465,7 @@ var TwitchApi = class {
|
|
|
3465
3465
|
*
|
|
3466
3466
|
* @see https://dev.twitch.tv/docs/api/reference#update-automod-settings
|
|
3467
3467
|
*/
|
|
3468
|
-
updateAutoModSettings: async (params, body = null, options) => this.callApi({
|
|
3468
|
+
updateAutoModSettings: async (params, body = null, options = {}) => this.callApi({
|
|
3469
3469
|
path: "/moderation/automod/settings",
|
|
3470
3470
|
method: "PUT",
|
|
3471
3471
|
params,
|
|
@@ -3503,7 +3503,7 @@ var TwitchApi = class {
|
|
|
3503
3503
|
*
|
|
3504
3504
|
* @see https://dev.twitch.tv/docs/api/reference#get-banned-users
|
|
3505
3505
|
*/
|
|
3506
|
-
getBannedUsers: async (params, options) => this.callApi({
|
|
3506
|
+
getBannedUsers: async (params, options = {}) => this.callApi({
|
|
3507
3507
|
path: "/moderation/banned",
|
|
3508
3508
|
params,
|
|
3509
3509
|
options
|
|
@@ -3564,7 +3564,7 @@ var TwitchApi = class {
|
|
|
3564
3564
|
*
|
|
3565
3565
|
* @see https://dev.twitch.tv/docs/api/reference#ban-user
|
|
3566
3566
|
*/
|
|
3567
|
-
banUser: async (params, body, options) => this.callApi({
|
|
3567
|
+
banUser: async (params, body, options = {}) => this.callApi({
|
|
3568
3568
|
path: "/moderation/bans",
|
|
3569
3569
|
method: "POST",
|
|
3570
3570
|
params,
|
|
@@ -3619,7 +3619,7 @@ var TwitchApi = class {
|
|
|
3619
3619
|
*
|
|
3620
3620
|
* @see https://dev.twitch.tv/docs/api/reference#unban-user
|
|
3621
3621
|
*/
|
|
3622
|
-
unbanUser: async (params, options) => this.callApi({
|
|
3622
|
+
unbanUser: async (params, options = {}) => this.callApi({
|
|
3623
3623
|
path: "/moderation/bans",
|
|
3624
3624
|
method: "DELETE",
|
|
3625
3625
|
params,
|
|
@@ -3661,7 +3661,7 @@ var TwitchApi = class {
|
|
|
3661
3661
|
*
|
|
3662
3662
|
* @see https://dev.twitch.tv/docs/api/reference#get-blocked-terms
|
|
3663
3663
|
*/
|
|
3664
|
-
getBlockedTerms: async (params, options) => this.callApi({
|
|
3664
|
+
getBlockedTerms: async (params, options = {}) => this.callApi({
|
|
3665
3665
|
path: "/moderation/blocked_terms",
|
|
3666
3666
|
params,
|
|
3667
3667
|
options
|
|
@@ -3704,7 +3704,7 @@ var TwitchApi = class {
|
|
|
3704
3704
|
*
|
|
3705
3705
|
* @see https://dev.twitch.tv/docs/api/reference#add-blocked-term
|
|
3706
3706
|
*/
|
|
3707
|
-
addBlockedTerm: async (params, body, options) => this.callApi({
|
|
3707
|
+
addBlockedTerm: async (params, body, options = {}) => this.callApi({
|
|
3708
3708
|
path: "/moderation/blocked_terms",
|
|
3709
3709
|
method: "POST",
|
|
3710
3710
|
params,
|
|
@@ -3748,7 +3748,7 @@ var TwitchApi = class {
|
|
|
3748
3748
|
*
|
|
3749
3749
|
* @see https://dev.twitch.tv/docs/api/reference#remove-blocked-term
|
|
3750
3750
|
*/
|
|
3751
|
-
removeBlockedTerm: async (params, options) => this.callApi({
|
|
3751
|
+
removeBlockedTerm: async (params, options = {}) => this.callApi({
|
|
3752
3752
|
path: "/moderation/blocked_terms",
|
|
3753
3753
|
method: "DELETE",
|
|
3754
3754
|
params,
|
|
@@ -3794,14 +3794,14 @@ var TwitchApi = class {
|
|
|
3794
3794
|
*
|
|
3795
3795
|
* @see https://dev.twitch.tv/docs/api/reference#delete-chat-messages
|
|
3796
3796
|
*/
|
|
3797
|
-
deleteChatMessages: async (params, options) => this.callApi({
|
|
3797
|
+
deleteChatMessages: async (params, options = {}) => this.callApi({
|
|
3798
3798
|
path: "/moderation/chat",
|
|
3799
3799
|
method: "DELETE",
|
|
3800
3800
|
params,
|
|
3801
3801
|
options
|
|
3802
3802
|
}),
|
|
3803
3803
|
/**
|
|
3804
|
-
*
|
|
3804
|
+
* Gets a list of channels that the specified user has moderator privileges in.
|
|
3805
3805
|
*
|
|
3806
3806
|
* __Authorization:__
|
|
3807
3807
|
*
|
|
@@ -3826,7 +3826,7 @@ var TwitchApi = class {
|
|
|
3826
3826
|
*
|
|
3827
3827
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderated-channels
|
|
3828
3828
|
*/
|
|
3829
|
-
getModeratedChannels: async (params, options) => this.callApi({
|
|
3829
|
+
getModeratedChannels: async (params, options = {}) => this.callApi({
|
|
3830
3830
|
path: "/moderation/channels",
|
|
3831
3831
|
params,
|
|
3832
3832
|
options
|
|
@@ -3862,7 +3862,7 @@ var TwitchApi = class {
|
|
|
3862
3862
|
*
|
|
3863
3863
|
* @see https://dev.twitch.tv/docs/api/reference#get-moderators
|
|
3864
3864
|
*/
|
|
3865
|
-
getModerators: async (params, options) => this.callApi({
|
|
3865
|
+
getModerators: async (params, options = {}) => this.callApi({
|
|
3866
3866
|
path: "/moderation/moderators",
|
|
3867
3867
|
params,
|
|
3868
3868
|
options
|
|
@@ -3911,7 +3911,7 @@ var TwitchApi = class {
|
|
|
3911
3911
|
*
|
|
3912
3912
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-moderator
|
|
3913
3913
|
*/
|
|
3914
|
-
addChannelModerator: async (params, options) => this.callApi({
|
|
3914
|
+
addChannelModerator: async (params, options = {}) => this.callApi({
|
|
3915
3915
|
path: "/moderation/moderators",
|
|
3916
3916
|
method: "POST",
|
|
3917
3917
|
params,
|
|
@@ -3956,7 +3956,7 @@ var TwitchApi = class {
|
|
|
3956
3956
|
*
|
|
3957
3957
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-moderator
|
|
3958
3958
|
*/
|
|
3959
|
-
removeChannelModerator: async (params, options) => this.callApi({
|
|
3959
|
+
removeChannelModerator: async (params, options = {}) => this.callApi({
|
|
3960
3960
|
path: "/moderation/moderators",
|
|
3961
3961
|
method: "DELETE",
|
|
3962
3962
|
params,
|
|
@@ -3995,7 +3995,7 @@ var TwitchApi = class {
|
|
|
3995
3995
|
*
|
|
3996
3996
|
* @see https://dev.twitch.tv/docs/api/reference#get-vips
|
|
3997
3997
|
*/
|
|
3998
|
-
getVIPs: async (params, options) => this.callApi({
|
|
3998
|
+
getVIPs: async (params, options = {}) => this.callApi({
|
|
3999
3999
|
path: "/channels/vips",
|
|
4000
4000
|
params,
|
|
4001
4001
|
options
|
|
@@ -4061,7 +4061,7 @@ var TwitchApi = class {
|
|
|
4061
4061
|
*
|
|
4062
4062
|
* @see https://dev.twitch.tv/docs/api/reference#add-channel-vip
|
|
4063
4063
|
*/
|
|
4064
|
-
addChannelVIP: async (params, options) => this.callApi({
|
|
4064
|
+
addChannelVIP: async (params, options = {}) => this.callApi({
|
|
4065
4065
|
path: "/channels/vips",
|
|
4066
4066
|
method: "POST",
|
|
4067
4067
|
params,
|
|
@@ -4120,7 +4120,7 @@ var TwitchApi = class {
|
|
|
4120
4120
|
*
|
|
4121
4121
|
* @see https://dev.twitch.tv/docs/api/reference#remove-channel-vip
|
|
4122
4122
|
*/
|
|
4123
|
-
removeChannelVIP: async (params, options) => this.callApi({
|
|
4123
|
+
removeChannelVIP: async (params, options = {}) => this.callApi({
|
|
4124
4124
|
path: "/channels/vips",
|
|
4125
4125
|
method: "DELETE",
|
|
4126
4126
|
params,
|
|
@@ -4166,7 +4166,7 @@ var TwitchApi = class {
|
|
|
4166
4166
|
*
|
|
4167
4167
|
* @see https://dev.twitch.tv/docs/api/reference#update-shield-mode-status
|
|
4168
4168
|
*/
|
|
4169
|
-
updateShieldModeStatus: async (params, body, options) => this.callApi({
|
|
4169
|
+
updateShieldModeStatus: async (params, body, options = {}) => this.callApi({
|
|
4170
4170
|
path: "/moderation/shield_mode",
|
|
4171
4171
|
method: "PUT",
|
|
4172
4172
|
params,
|
|
@@ -4211,7 +4211,7 @@ var TwitchApi = class {
|
|
|
4211
4211
|
*
|
|
4212
4212
|
* @see https://dev.twitch.tv/docs/api/reference#get-shield-mode-status
|
|
4213
4213
|
*/
|
|
4214
|
-
getShieldModeStatus: async (params, options) => this.callApi({
|
|
4214
|
+
getShieldModeStatus: async (params, options = {}) => this.callApi({
|
|
4215
4215
|
path: "/moderation/shield_mode",
|
|
4216
4216
|
params,
|
|
4217
4217
|
options
|
|
@@ -4255,7 +4255,7 @@ var TwitchApi = class {
|
|
|
4255
4255
|
*
|
|
4256
4256
|
* @see https://dev.twitch.tv/docs/api/reference#get-polls
|
|
4257
4257
|
*/
|
|
4258
|
-
getPolls: async (params, options) => this.callApi({
|
|
4258
|
+
getPolls: async (params, options = {}) => this.callApi({
|
|
4259
4259
|
path: "/polls",
|
|
4260
4260
|
params,
|
|
4261
4261
|
options
|
|
@@ -4304,7 +4304,7 @@ var TwitchApi = class {
|
|
|
4304
4304
|
*
|
|
4305
4305
|
* @see https://dev.twitch.tv/docs/api/reference#create-poll
|
|
4306
4306
|
*/
|
|
4307
|
-
createPoll: async (body, options) => this.callApi({
|
|
4307
|
+
createPoll: async (body, options = {}) => this.callApi({
|
|
4308
4308
|
path: "/polls",
|
|
4309
4309
|
method: "POST",
|
|
4310
4310
|
body,
|
|
@@ -4345,7 +4345,7 @@ var TwitchApi = class {
|
|
|
4345
4345
|
*
|
|
4346
4346
|
* @see https://dev.twitch.tv/docs/api/reference#end-poll
|
|
4347
4347
|
*/
|
|
4348
|
-
endPoll: async (body, options) => this.callApi({
|
|
4348
|
+
endPoll: async (body, options = {}) => this.callApi({
|
|
4349
4349
|
path: "/polls",
|
|
4350
4350
|
method: "PATCH",
|
|
4351
4351
|
body,
|
|
@@ -4384,7 +4384,7 @@ var TwitchApi = class {
|
|
|
4384
4384
|
*
|
|
4385
4385
|
* @see https://dev.twitch.tv/docs/api/reference#get-predictions
|
|
4386
4386
|
*/
|
|
4387
|
-
getPredictions: async (params, options) => this.callApi({
|
|
4387
|
+
getPredictions: async (params, options = {}) => this.callApi({
|
|
4388
4388
|
path: "/predictions",
|
|
4389
4389
|
params,
|
|
4390
4390
|
options
|
|
@@ -4433,7 +4433,7 @@ var TwitchApi = class {
|
|
|
4433
4433
|
*
|
|
4434
4434
|
* @see https://dev.twitch.tv/docs/api/reference#create-prediction
|
|
4435
4435
|
*/
|
|
4436
|
-
createPrediction: async (body, options) => this.callApi({
|
|
4436
|
+
createPrediction: async (body, options = {}) => this.callApi({
|
|
4437
4437
|
path: "/predictions",
|
|
4438
4438
|
method: "POST",
|
|
4439
4439
|
body,
|
|
@@ -4481,7 +4481,7 @@ var TwitchApi = class {
|
|
|
4481
4481
|
*
|
|
4482
4482
|
* @see https://dev.twitch.tv/docs/api/reference#end-prediction
|
|
4483
4483
|
*/
|
|
4484
|
-
endPrediction: async (body, options) => this.callApi({
|
|
4484
|
+
endPrediction: async (body, options = {}) => this.callApi({
|
|
4485
4485
|
path: "/predictions",
|
|
4486
4486
|
method: "PATCH",
|
|
4487
4487
|
body,
|
|
@@ -4545,7 +4545,7 @@ var TwitchApi = class {
|
|
|
4545
4545
|
*
|
|
4546
4546
|
* @see https://dev.twitch.tv/docs/api/reference#start-a-raid
|
|
4547
4547
|
*/
|
|
4548
|
-
startRaid: async (params = null, options) => this.callApi({
|
|
4548
|
+
startRaid: async (params = null, options = {}) => this.callApi({
|
|
4549
4549
|
path: "/raids",
|
|
4550
4550
|
method: "POST",
|
|
4551
4551
|
params,
|
|
@@ -4594,7 +4594,7 @@ var TwitchApi = class {
|
|
|
4594
4594
|
*
|
|
4595
4595
|
* @see https://dev.twitch.tv/docs/api/reference#cancel-a-raid
|
|
4596
4596
|
*/
|
|
4597
|
-
cancelRaid: async (params, options) => this.callApi({
|
|
4597
|
+
cancelRaid: async (params, options = {}) => this.callApi({
|
|
4598
4598
|
path: "/raids",
|
|
4599
4599
|
method: "DELETE",
|
|
4600
4600
|
params,
|
|
@@ -4642,7 +4642,7 @@ var TwitchApi = class {
|
|
|
4642
4642
|
*
|
|
4643
4643
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-stream-schedule
|
|
4644
4644
|
*/
|
|
4645
|
-
getChannelStreamSchedule: async (params, options) => this.callApi({
|
|
4645
|
+
getChannelStreamSchedule: async (params, options = {}) => this.callApi({
|
|
4646
4646
|
path: "/schedule",
|
|
4647
4647
|
params,
|
|
4648
4648
|
options
|
|
@@ -4677,7 +4677,7 @@ var TwitchApi = class {
|
|
|
4677
4677
|
*
|
|
4678
4678
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-icalendar
|
|
4679
4679
|
*/
|
|
4680
|
-
getChannelICalendar: async (params, options) => this.callApi({
|
|
4680
|
+
getChannelICalendar: async (params, options = {}) => this.callApi({
|
|
4681
4681
|
path: "/schedule/icalendar",
|
|
4682
4682
|
params,
|
|
4683
4683
|
options
|
|
@@ -4721,7 +4721,7 @@ var TwitchApi = class {
|
|
|
4721
4721
|
*
|
|
4722
4722
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule
|
|
4723
4723
|
*/
|
|
4724
|
-
updateChannelStreamSchedule: async (params, options) => this.callApi({
|
|
4724
|
+
updateChannelStreamSchedule: async (params, options = {}) => this.callApi({
|
|
4725
4725
|
path: "/schedule/settings",
|
|
4726
4726
|
method: "PATCH",
|
|
4727
4727
|
params,
|
|
@@ -4768,7 +4768,7 @@ var TwitchApi = class {
|
|
|
4768
4768
|
*
|
|
4769
4769
|
* @see https://dev.twitch.tv/docs/api/reference#create-channel-stream-schedule-segment
|
|
4770
4770
|
*/
|
|
4771
|
-
createChannelStreamScheduleSegment: async (params, body, options) => this.callApi({
|
|
4771
|
+
createChannelStreamScheduleSegment: async (params, body, options = {}) => this.callApi({
|
|
4772
4772
|
path: "/schedule/segment",
|
|
4773
4773
|
method: "POST",
|
|
4774
4774
|
params,
|
|
@@ -4820,7 +4820,7 @@ var TwitchApi = class {
|
|
|
4820
4820
|
*
|
|
4821
4821
|
* @see https://dev.twitch.tv/docs/api/reference#update-channel-stream-schedule-segment
|
|
4822
4822
|
*/
|
|
4823
|
-
updateChannelStreamScheduleSegment: async (params, body = null, options) => this.callApi({
|
|
4823
|
+
updateChannelStreamScheduleSegment: async (params, body = null, options = {}) => this.callApi({
|
|
4824
4824
|
path: "/schedule/segment",
|
|
4825
4825
|
method: "PATCH",
|
|
4826
4826
|
params,
|
|
@@ -4863,7 +4863,7 @@ var TwitchApi = class {
|
|
|
4863
4863
|
*
|
|
4864
4864
|
* @see https://dev.twitch.tv/docs/api/reference#delete-channel-stream-schedule-segment
|
|
4865
4865
|
*/
|
|
4866
|
-
deleteChannelStreamScheduleSegment: async (params, options) => this.callApi({
|
|
4866
|
+
deleteChannelStreamScheduleSegment: async (params, options = {}) => this.callApi({
|
|
4867
4867
|
path: "/schedule/segment",
|
|
4868
4868
|
method: "DELETE",
|
|
4869
4869
|
params,
|
|
@@ -4902,7 +4902,7 @@ var TwitchApi = class {
|
|
|
4902
4902
|
*
|
|
4903
4903
|
* @see https://dev.twitch.tv/docs/api/reference#search-categories
|
|
4904
4904
|
*/
|
|
4905
|
-
searchCategories: async (params, options) => this.callApi({
|
|
4905
|
+
searchCategories: async (params, options = {}) => this.callApi({
|
|
4906
4906
|
path: "/search/categories",
|
|
4907
4907
|
params,
|
|
4908
4908
|
options
|
|
@@ -4942,7 +4942,7 @@ var TwitchApi = class {
|
|
|
4942
4942
|
*
|
|
4943
4943
|
* @see https://dev.twitch.tv/docs/api/reference#search-channels
|
|
4944
4944
|
*/
|
|
4945
|
-
searchChannels: async (params, options) => this.callApi({
|
|
4945
|
+
searchChannels: async (params, options = {}) => this.callApi({
|
|
4946
4946
|
path: "/search/channels",
|
|
4947
4947
|
params,
|
|
4948
4948
|
options
|
|
@@ -4981,7 +4981,7 @@ var TwitchApi = class {
|
|
|
4981
4981
|
*
|
|
4982
4982
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-key
|
|
4983
4983
|
*/
|
|
4984
|
-
getStreamKey: async (params, options) => this.callApi({
|
|
4984
|
+
getStreamKey: async (params, options = {}) => this.callApi({
|
|
4985
4985
|
path: "/streams/key",
|
|
4986
4986
|
params,
|
|
4987
4987
|
options
|
|
@@ -5015,7 +5015,7 @@ var TwitchApi = class {
|
|
|
5015
5015
|
*
|
|
5016
5016
|
* @see https://dev.twitch.tv/docs/api/reference#get-streams
|
|
5017
5017
|
*/
|
|
5018
|
-
getStreams: async (params = null, options) => this.callApi({
|
|
5018
|
+
getStreams: async (params = null, options = {}) => this.callApi({
|
|
5019
5019
|
path: "/streams",
|
|
5020
5020
|
params,
|
|
5021
5021
|
options
|
|
@@ -5051,7 +5051,7 @@ var TwitchApi = class {
|
|
|
5051
5051
|
*
|
|
5052
5052
|
* @see https://dev.twitch.tv/docs/api/reference#get-followed-streams
|
|
5053
5053
|
*/
|
|
5054
|
-
getFollowedStreams: async (params, options) => this.callApi({
|
|
5054
|
+
getFollowedStreams: async (params, options = {}) => this.callApi({
|
|
5055
5055
|
path: "/streams/followed",
|
|
5056
5056
|
params,
|
|
5057
5057
|
options
|
|
@@ -5104,7 +5104,7 @@ var TwitchApi = class {
|
|
|
5104
5104
|
*
|
|
5105
5105
|
* @see https://dev.twitch.tv/docs/api/reference#create-stream-marker
|
|
5106
5106
|
*/
|
|
5107
|
-
createStreamMarker: async (body, options) => this.callApi({
|
|
5107
|
+
createStreamMarker: async (body, options = {}) => this.callApi({
|
|
5108
5108
|
path: "/streams/markers",
|
|
5109
5109
|
method: "POST",
|
|
5110
5110
|
body,
|
|
@@ -5148,7 +5148,7 @@ var TwitchApi = class {
|
|
|
5148
5148
|
*
|
|
5149
5149
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-markers
|
|
5150
5150
|
*/
|
|
5151
|
-
getStreamMarkers: async (params = null, options) => this.callApi({
|
|
5151
|
+
getStreamMarkers: async (params = null, options = {}) => this.callApi({
|
|
5152
5152
|
path: "/streams/markers",
|
|
5153
5153
|
params,
|
|
5154
5154
|
options
|
|
@@ -5188,7 +5188,7 @@ var TwitchApi = class {
|
|
|
5188
5188
|
*
|
|
5189
5189
|
* @see https://dev.twitch.tv/docs/api/reference#get-broadcaster-subscriptions
|
|
5190
5190
|
*/
|
|
5191
|
-
getBroadcasterSubscriptions: async (params, options) => this.callApi({
|
|
5191
|
+
getBroadcasterSubscriptions: async (params, options = {}) => this.callApi({
|
|
5192
5192
|
path: "/subscriptions",
|
|
5193
5193
|
params,
|
|
5194
5194
|
options
|
|
@@ -5231,7 +5231,7 @@ var TwitchApi = class {
|
|
|
5231
5231
|
*
|
|
5232
5232
|
* @see https://dev.twitch.tv/docs/api/reference#check-user-subscription
|
|
5233
5233
|
*/
|
|
5234
|
-
checkUserSubscription: async (params, options) => this.callApi({
|
|
5234
|
+
checkUserSubscription: async (params, options = {}) => this.callApi({
|
|
5235
5235
|
path: "/subscriptions/user",
|
|
5236
5236
|
params,
|
|
5237
5237
|
options
|
|
@@ -5270,7 +5270,7 @@ var TwitchApi = class {
|
|
|
5270
5270
|
*
|
|
5271
5271
|
* @see https://dev.twitch.tv/docs/api/reference#get-all-stream-tags
|
|
5272
5272
|
*/
|
|
5273
|
-
getAllStreamTags: async (params = null, options) => this.callApi({
|
|
5273
|
+
getAllStreamTags: async (params = null, options = {}) => this.callApi({
|
|
5274
5274
|
path: "/tags/streams",
|
|
5275
5275
|
params,
|
|
5276
5276
|
options
|
|
@@ -5307,7 +5307,7 @@ var TwitchApi = class {
|
|
|
5307
5307
|
*
|
|
5308
5308
|
* @see https://dev.twitch.tv/docs/api/reference#get-stream-tags
|
|
5309
5309
|
*/
|
|
5310
|
-
getStreamTags: async (params, options) => this.callApi({
|
|
5310
|
+
getStreamTags: async (params, options = {}) => this.callApi({
|
|
5311
5311
|
path: "/streams/tags",
|
|
5312
5312
|
params,
|
|
5313
5313
|
options
|
|
@@ -5347,7 +5347,7 @@ var TwitchApi = class {
|
|
|
5347
5347
|
*
|
|
5348
5348
|
* @see https://dev.twitch.tv/docs/api/reference#get-channel-teams
|
|
5349
5349
|
*/
|
|
5350
|
-
getChannelTeams: async (params, options) => this.callApi({
|
|
5350
|
+
getChannelTeams: async (params, options = {}) => this.callApi({
|
|
5351
5351
|
path: "/teams/channel",
|
|
5352
5352
|
params,
|
|
5353
5353
|
options
|
|
@@ -5367,7 +5367,7 @@ var TwitchApi = class {
|
|
|
5367
5367
|
*
|
|
5368
5368
|
* _200 OK_
|
|
5369
5369
|
*
|
|
5370
|
-
* Successfully retrieved the team
|
|
5370
|
+
* Successfully retrieved the team's information.
|
|
5371
5371
|
*
|
|
5372
5372
|
* _400 Bad Request_
|
|
5373
5373
|
*
|
|
@@ -5387,7 +5387,7 @@ var TwitchApi = class {
|
|
|
5387
5387
|
*
|
|
5388
5388
|
* @see https://dev.twitch.tv/docs/api/reference#get-teams
|
|
5389
5389
|
*/
|
|
5390
|
-
getTeams: async (params = null, options) => this.callApi({
|
|
5390
|
+
getTeams: async (params = null, options = {}) => this.callApi({
|
|
5391
5391
|
path: "/teams",
|
|
5392
5392
|
params,
|
|
5393
5393
|
options
|
|
@@ -5415,7 +5415,7 @@ var TwitchApi = class {
|
|
|
5415
5415
|
*
|
|
5416
5416
|
* _200 OK_
|
|
5417
5417
|
*
|
|
5418
|
-
* Successfully retrieved the specified users
|
|
5418
|
+
* Successfully retrieved the specified users' information.
|
|
5419
5419
|
*
|
|
5420
5420
|
* _400 Bad Request_
|
|
5421
5421
|
*
|
|
@@ -5430,7 +5430,7 @@ var TwitchApi = class {
|
|
|
5430
5430
|
*
|
|
5431
5431
|
* @see https://dev.twitch.tv/docs/api/reference#get-users
|
|
5432
5432
|
*/
|
|
5433
|
-
getUsers: async (params = null, options) => this.callApi({
|
|
5433
|
+
getUsers: async (params = null, options = {}) => this.callApi({
|
|
5434
5434
|
path: "/users",
|
|
5435
5435
|
params,
|
|
5436
5436
|
options
|
|
@@ -5452,7 +5452,7 @@ var TwitchApi = class {
|
|
|
5452
5452
|
*
|
|
5453
5453
|
* _200 OK_
|
|
5454
5454
|
*
|
|
5455
|
-
* Successfully updated the specified user
|
|
5455
|
+
* Successfully updated the specified user's information.
|
|
5456
5456
|
*
|
|
5457
5457
|
* _400 Bad Request_
|
|
5458
5458
|
*
|
|
@@ -5467,7 +5467,7 @@ var TwitchApi = class {
|
|
|
5467
5467
|
*
|
|
5468
5468
|
* @see https://dev.twitch.tv/docs/api/reference#update-user
|
|
5469
5469
|
*/
|
|
5470
|
-
updateUser: async (params = null, options) => this.callApi({
|
|
5470
|
+
updateUser: async (params = null, options = {}) => this.callApi({
|
|
5471
5471
|
path: "/users",
|
|
5472
5472
|
method: "PUT",
|
|
5473
5473
|
params,
|
|
@@ -5488,7 +5488,7 @@ var TwitchApi = class {
|
|
|
5488
5488
|
*
|
|
5489
5489
|
* _200 OK_
|
|
5490
5490
|
*
|
|
5491
|
-
* Successfully retrieved the broadcaster
|
|
5491
|
+
* Successfully retrieved the broadcaster's list of blocked users.
|
|
5492
5492
|
*
|
|
5493
5493
|
* _400 Bad Request_
|
|
5494
5494
|
*
|
|
@@ -5504,7 +5504,7 @@ var TwitchApi = class {
|
|
|
5504
5504
|
*
|
|
5505
5505
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-block-list
|
|
5506
5506
|
*/
|
|
5507
|
-
getUserBlockList: async (params, options) => this.callApi({
|
|
5507
|
+
getUserBlockList: async (params, options = {}) => this.callApi({
|
|
5508
5508
|
path: "/users/blocks",
|
|
5509
5509
|
params,
|
|
5510
5510
|
options
|
|
@@ -5544,7 +5544,7 @@ var TwitchApi = class {
|
|
|
5544
5544
|
*
|
|
5545
5545
|
* @see https://dev.twitch.tv/docs/api/reference#block-user
|
|
5546
5546
|
*/
|
|
5547
|
-
blockUser: async (params, options) => this.callApi({
|
|
5547
|
+
blockUser: async (params, options = {}) => this.callApi({
|
|
5548
5548
|
path: "/users/blocks",
|
|
5549
5549
|
method: "PUT",
|
|
5550
5550
|
params,
|
|
@@ -5580,7 +5580,7 @@ var TwitchApi = class {
|
|
|
5580
5580
|
*
|
|
5581
5581
|
* @see https://dev.twitch.tv/docs/api/reference#unblock-user
|
|
5582
5582
|
*/
|
|
5583
|
-
unblockUser: async (params, options) => this.callApi({
|
|
5583
|
+
unblockUser: async (params, options = {}) => this.callApi({
|
|
5584
5584
|
path: "/users/blocks",
|
|
5585
5585
|
method: "DELETE",
|
|
5586
5586
|
params,
|
|
@@ -5601,7 +5601,7 @@ var TwitchApi = class {
|
|
|
5601
5601
|
*
|
|
5602
5602
|
* _200 OK_
|
|
5603
5603
|
*
|
|
5604
|
-
* Successfully retrieved the user
|
|
5604
|
+
* Successfully retrieved the user's installed extensions.
|
|
5605
5605
|
*
|
|
5606
5606
|
* _401 Unauthorized_
|
|
5607
5607
|
*
|
|
@@ -5612,7 +5612,7 @@ var TwitchApi = class {
|
|
|
5612
5612
|
*
|
|
5613
5613
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-extensions
|
|
5614
5614
|
*/
|
|
5615
|
-
getUserExtensions: async (options) => this.callApi({
|
|
5615
|
+
getUserExtensions: async (options = {}) => this.callApi({
|
|
5616
5616
|
path: "/users/extensions/list",
|
|
5617
5617
|
options
|
|
5618
5618
|
}),
|
|
@@ -5633,7 +5633,7 @@ var TwitchApi = class {
|
|
|
5633
5633
|
*
|
|
5634
5634
|
* _200 OK_
|
|
5635
5635
|
*
|
|
5636
|
-
* Successfully retrieved the user
|
|
5636
|
+
* Successfully retrieved the user's active extensions.
|
|
5637
5637
|
*
|
|
5638
5638
|
* _400 Bad Request_
|
|
5639
5639
|
*
|
|
@@ -5647,7 +5647,7 @@ var TwitchApi = class {
|
|
|
5647
5647
|
*
|
|
5648
5648
|
* @see https://dev.twitch.tv/docs/api/reference#get-user-active-extensions
|
|
5649
5649
|
*/
|
|
5650
|
-
getUserActiveExtensions: async (params = null, options) => this.callApi({
|
|
5650
|
+
getUserActiveExtensions: async (params = null, options = {}) => this.callApi({
|
|
5651
5651
|
path: "/users/extensions",
|
|
5652
5652
|
params,
|
|
5653
5653
|
options
|
|
@@ -5688,7 +5688,7 @@ var TwitchApi = class {
|
|
|
5688
5688
|
*
|
|
5689
5689
|
* @see https://dev.twitch.tv/docs/api/reference#update-user-extensions
|
|
5690
5690
|
*/
|
|
5691
|
-
updateUserExtensions: async (body, options) => this.callApi({
|
|
5691
|
+
updateUserExtensions: async (body, options = {}) => this.callApi({
|
|
5692
5692
|
path: "/users/extensions",
|
|
5693
5693
|
method: "PUT",
|
|
5694
5694
|
body,
|
|
@@ -5738,7 +5738,7 @@ var TwitchApi = class {
|
|
|
5738
5738
|
*
|
|
5739
5739
|
* @see https://dev.twitch.tv/docs/api/reference#get-videos
|
|
5740
5740
|
*/
|
|
5741
|
-
getVideos: async (params = null, options) => this.callApi({
|
|
5741
|
+
getVideos: async (params = null, options = {}) => this.callApi({
|
|
5742
5742
|
path: "/videos",
|
|
5743
5743
|
params,
|
|
5744
5744
|
options
|
|
@@ -5775,7 +5775,7 @@ var TwitchApi = class {
|
|
|
5775
5775
|
*
|
|
5776
5776
|
* @see https://dev.twitch.tv/docs/api/reference#delete-videos
|
|
5777
5777
|
*/
|
|
5778
|
-
deleteVideos: async (params, options) => this.callApi({
|
|
5778
|
+
deleteVideos: async (params, options = {}) => this.callApi({
|
|
5779
5779
|
path: "/videos",
|
|
5780
5780
|
method: "DELETE",
|
|
5781
5781
|
params,
|
|
@@ -5839,7 +5839,7 @@ var TwitchApi = class {
|
|
|
5839
5839
|
*
|
|
5840
5840
|
* @see https://dev.twitch.tv/docs/api/reference#send-whisper
|
|
5841
5841
|
*/
|
|
5842
|
-
sendWhisper: async (params, body, options) => this.callApi({
|
|
5842
|
+
sendWhisper: async (params, body, options = {}) => this.callApi({
|
|
5843
5843
|
path: "/whispers",
|
|
5844
5844
|
method: "POST",
|
|
5845
5845
|
params,
|