dfx 0.127.0 → 1.0.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/Cache/memory.d.ts +1 -1
- package/Cache/memory.d.ts.map +1 -1
- package/Cache/memory.js +4 -4
- package/Cache/memory.js.map +1 -1
- package/Cache/memoryTTL.d.ts +1 -1
- package/Cache/memoryTTL.d.ts.map +1 -1
- package/Cache/memoryTTL.js +6 -6
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.d.ts +6 -6
- package/Cache/prelude.d.ts.map +1 -1
- package/Cache/prelude.js +4 -4
- package/Cache/prelude.js.map +1 -1
- package/Cache.d.ts +9 -10
- package/Cache.d.ts.map +1 -1
- package/Cache.js +20 -19
- package/Cache.js.map +1 -1
- package/DiscordConfig.d.ts +8 -8
- package/DiscordConfig.d.ts.map +1 -1
- package/DiscordConfig.js +8 -7
- package/DiscordConfig.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts +12 -12
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js +30 -17
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Messaging.d.ts +204 -10
- package/DiscordGateway/Messaging.d.ts.map +1 -1
- package/DiscordGateway/Messaging.js +10 -7
- package/DiscordGateway/Messaging.js.map +1 -1
- package/DiscordGateway/Shard/StateStore.d.ts +4 -4
- package/DiscordGateway/Shard/StateStore.d.ts.map +1 -1
- package/DiscordGateway/Shard/StateStore.js +7 -6
- package/DiscordGateway/Shard/StateStore.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.d.ts +5 -5
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js +15 -10
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/identify.d.ts +2 -2
- package/DiscordGateway/Shard/identify.d.ts.map +1 -1
- package/DiscordGateway/Shard/identify.js +2 -2
- package/DiscordGateway/Shard/identify.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +1 -1
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts +1 -1
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard.d.ts +16 -15
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +27 -21
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/ShardStore.d.ts +4 -3
- package/DiscordGateway/ShardStore.d.ts.map +1 -1
- package/DiscordGateway/ShardStore.js +3 -2
- package/DiscordGateway/ShardStore.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +9 -8
- package/DiscordGateway/Sharder.d.ts.map +1 -1
- package/DiscordGateway/Sharder.js +19 -17
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway.d.ts +13 -12
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordGateway.js +4 -4
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/Generated.d.ts +402 -240
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +193 -126
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST/utils.d.ts +1 -1
- package/DiscordREST/utils.d.ts.map +1 -1
- package/DiscordREST/utils.js +4 -3
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts +10 -11
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +23 -27
- package/DiscordREST.js.map +1 -1
- package/Helpers/flags.d.ts.map +1 -1
- package/Helpers/flags.js +10 -1
- package/Helpers/flags.js.map +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js +2 -2
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.d.ts +2 -2
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +12 -12
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts +2 -2
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js +1 -1
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.d.ts +1 -1
- package/Helpers/permissions.d.ts.map +1 -1
- package/Helpers/permissions.js +4 -4
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.d.ts +9 -9
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js +15 -15
- package/Helpers/ui.js.map +1 -1
- package/Interactions/builder.d.ts +6 -6
- package/Interactions/builder.d.ts.map +1 -1
- package/Interactions/builder.js +7 -7
- package/Interactions/builder.js.map +1 -1
- package/Interactions/commandHelper.d.ts +3 -19
- package/Interactions/commandHelper.d.ts.map +1 -1
- package/Interactions/commandHelper.js +11 -7
- package/Interactions/commandHelper.js.map +1 -1
- package/Interactions/context.d.ts +30 -31
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js +23 -18
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts +7 -8
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/gateway.d.ts +11 -12
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js +22 -20
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.d.ts +3 -3
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +5 -4
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/index.d.ts +5 -4
- package/Interactions/index.d.ts.map +1 -1
- package/Interactions/index.js +4 -4
- package/Interactions/index.js.map +1 -1
- package/Interactions/utils.d.ts +4 -4
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/utils.js +1 -1
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.d.ts +9 -11
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js +16 -16
- package/Interactions/webhook.js.map +1 -1
- package/RateLimit/memory.d.ts +1 -1
- package/RateLimit/memory.d.ts.map +1 -1
- package/RateLimit/memory.js +2 -2
- package/RateLimit/memory.js.map +1 -1
- package/RateLimit.d.ts +7 -7
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js +7 -5
- package/RateLimit.js.map +1 -1
- package/gateway.d.ts +14 -14
- package/gateway.d.ts.map +1 -1
- package/gateway.js +10 -10
- package/gateway.js.map +1 -1
- package/index.d.ts +14 -14
- package/index.d.ts.map +1 -1
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/mjs/Cache/memory.mjs +4 -4
- package/mjs/Cache/memory.mjs.map +1 -1
- package/mjs/Cache/memoryTTL.mjs +6 -6
- package/mjs/Cache/memoryTTL.mjs.map +1 -1
- package/mjs/Cache/prelude.mjs +4 -4
- package/mjs/Cache/prelude.mjs.map +1 -1
- package/mjs/Cache.mjs +20 -19
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordConfig.mjs +7 -7
- package/mjs/DiscordConfig.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs +28 -17
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/DiscordGateway/Messaging.mjs +9 -7
- package/mjs/DiscordGateway/Messaging.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/StateStore.mjs +7 -6
- package/mjs/DiscordGateway/Shard/StateStore.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/heartbeats.mjs +15 -10
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/identify.mjs +2 -2
- package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +26 -21
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/ShardStore.mjs +2 -2
- package/mjs/DiscordGateway/ShardStore.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs +18 -17
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/DiscordGateway.mjs +4 -4
- package/mjs/DiscordGateway.mjs.map +1 -1
- package/mjs/DiscordREST/Generated.mjs +192 -125
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST/utils.mjs +4 -3
- package/mjs/DiscordREST/utils.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +22 -27
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/Helpers/flags.mjs +10 -1
- package/mjs/Helpers/flags.mjs.map +1 -1
- package/mjs/Helpers/intents.mjs +2 -2
- package/mjs/Helpers/intents.mjs.map +1 -1
- package/mjs/Helpers/interactions.mjs +12 -12
- package/mjs/Helpers/interactions.mjs.map +1 -1
- package/mjs/Helpers/members.mjs +1 -1
- package/mjs/Helpers/members.mjs.map +1 -1
- package/mjs/Helpers/permissions.mjs +4 -4
- package/mjs/Helpers/permissions.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs +15 -15
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/builder.mjs +7 -7
- package/mjs/Interactions/builder.mjs.map +1 -1
- package/mjs/Interactions/commandHelper.mjs +11 -7
- package/mjs/Interactions/commandHelper.mjs.map +1 -1
- package/mjs/Interactions/context.mjs +17 -18
- package/mjs/Interactions/context.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs +21 -20
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/Interactions/handlers.mjs +5 -4
- package/mjs/Interactions/handlers.mjs.map +1 -1
- package/mjs/Interactions/index.mjs +4 -4
- package/mjs/Interactions/index.mjs.map +1 -1
- package/mjs/Interactions/utils.mjs +1 -1
- package/mjs/Interactions/utils.mjs.map +1 -1
- package/mjs/Interactions/webhook.mjs +15 -16
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/RateLimit/memory.mjs +2 -2
- package/mjs/RateLimit/memory.mjs.map +1 -1
- package/mjs/RateLimit.mjs +5 -5
- package/mjs/RateLimit.mjs.map +1 -1
- package/mjs/gateway.mjs +14 -14
- package/mjs/gateway.mjs.map +1 -1
- package/mjs/index.mjs +14 -14
- package/mjs/index.mjs.map +1 -1
- package/mjs/types.mjs +2 -2
- package/mjs/types.mjs.map +1 -1
- package/mjs/utils/Effect.mjs +34 -8
- package/mjs/utils/Effect.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/mjs/version.mjs.map +1 -1
- package/mjs/webhooks.mjs +3 -3
- package/mjs/webhooks.mjs.map +1 -1
- package/package.json +4 -5
- package/src/Cache/memory.ts +5 -5
- package/src/Cache/memoryTTL.ts +7 -7
- package/src/Cache/prelude.ts +10 -8
- package/src/Cache.ts +31 -35
- package/src/DiscordConfig.ts +13 -17
- package/src/DiscordGateway/DiscordWS.ts +58 -32
- package/src/DiscordGateway/Messaging.ts +13 -15
- package/src/DiscordGateway/Shard/StateStore.ts +30 -25
- package/src/DiscordGateway/Shard/heartbeats.ts +25 -28
- package/src/DiscordGateway/Shard/identify.ts +5 -4
- package/src/DiscordGateway/Shard/sendEvents.ts +1 -1
- package/src/DiscordGateway/Shard/utils.ts +1 -1
- package/src/DiscordGateway/Shard.ts +39 -35
- package/src/DiscordGateway/ShardStore.ts +6 -7
- package/src/DiscordGateway/Sharder.ts +31 -29
- package/src/DiscordGateway.ts +15 -14
- package/src/DiscordREST/Generated.ts +683 -378
- package/src/DiscordREST/utils.ts +6 -3
- package/src/DiscordREST.ts +37 -41
- package/src/Helpers/flags.ts +10 -5
- package/src/Helpers/intents.ts +2 -2
- package/src/Helpers/interactions.ts +16 -14
- package/src/Helpers/members.ts +3 -3
- package/src/Helpers/permissions.ts +5 -5
- package/src/Helpers/ui.ts +16 -16
- package/src/Interactions/builder.ts +10 -10
- package/src/Interactions/commandHelper.ts +18 -29
- package/src/Interactions/context.ts +51 -65
- package/src/Interactions/definitions.ts +3 -3
- package/src/Interactions/gateway.ts +33 -45
- package/src/Interactions/handlers.ts +8 -5
- package/src/Interactions/index.ts +5 -5
- package/src/Interactions/utils.ts +6 -6
- package/src/Interactions/webhook.ts +31 -38
- package/src/RateLimit/memory.ts +3 -3
- package/src/RateLimit.ts +18 -15
- package/src/gateway.ts +21 -21
- package/src/index.ts +17 -17
- package/src/types.ts +18 -16
- package/src/utils/Effect.ts +38 -27
- package/src/version.ts +1 -1
- package/src/webhooks.ts +7 -7
- package/tsconfig.base.json +12 -6
- package/tsconfig.examples.json +0 -1
- package/types.d.ts +4 -3
- package/types.d.ts.map +1 -1
- package/types.js +3 -3
- package/types.js.map +1 -1
- package/utils/Effect.d.ts.map +1 -1
- package/utils/Effect.js +33 -7
- package/utils/Effect.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/webhooks.d.ts +5 -5
- package/webhooks.d.ts.map +1 -1
- package/webhooks.js +3 -3
- package/webhooks.js.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as HttpClientError from "
|
|
2
|
-
import * as HttpClientRequest from "
|
|
3
|
-
import * as HttpClientResponse from "
|
|
1
|
+
import * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
2
|
+
import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
|
|
3
|
+
import * as HttpClientResponse from "effect/unstable/http/HttpClientResponse";
|
|
4
4
|
import * as Data from "effect/Data";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
export const OAuth2Scopes = {
|
|
@@ -708,7 +708,19 @@ export const MessageComponentTypes = {
|
|
|
708
708
|
/**
|
|
709
709
|
* File upload component
|
|
710
710
|
*/
|
|
711
|
-
FILE_UPLOAD: 19
|
|
711
|
+
FILE_UPLOAD: 19,
|
|
712
|
+
/**
|
|
713
|
+
* Radio group component
|
|
714
|
+
*/
|
|
715
|
+
RADIO_GROUP: 21,
|
|
716
|
+
/**
|
|
717
|
+
* Checkbox group component
|
|
718
|
+
*/
|
|
719
|
+
CHECKBOX_GROUP: 22,
|
|
720
|
+
/**
|
|
721
|
+
* Checkbox component
|
|
722
|
+
*/
|
|
723
|
+
CHECKBOX: 23
|
|
712
724
|
};
|
|
713
725
|
export const ButtonStyleTypes = {
|
|
714
726
|
PRIMARY: 1,
|
|
@@ -779,7 +791,11 @@ export const InteractionTypes = {
|
|
|
779
791
|
/**
|
|
780
792
|
* Sent when a user submits a modal previously sent by your application
|
|
781
793
|
*/
|
|
782
|
-
MODAL_SUBMIT: 5
|
|
794
|
+
MODAL_SUBMIT: 5,
|
|
795
|
+
/**
|
|
796
|
+
* Sent when Discord is checking if a user can purchase a Social Layer SKU
|
|
797
|
+
*/
|
|
798
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6
|
|
783
799
|
};
|
|
784
800
|
export const MessageShareCustomUserThemeBaseTheme = {
|
|
785
801
|
/**
|
|
@@ -1279,7 +1295,26 @@ export const InteractionCallbackTypes = {
|
|
|
1279
1295
|
UPDATE_MESSAGE: 7,
|
|
1280
1296
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
1281
1297
|
MODAL: 9,
|
|
1282
|
-
LAUNCH_ACTIVITY: 12
|
|
1298
|
+
LAUNCH_ACTIVITY: 12,
|
|
1299
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13
|
|
1300
|
+
};
|
|
1301
|
+
export const TargetUsersJobStatusTypes = {
|
|
1302
|
+
/**
|
|
1303
|
+
* The default value.
|
|
1304
|
+
*/
|
|
1305
|
+
UNSPECIFIED: 0,
|
|
1306
|
+
/**
|
|
1307
|
+
* The job is still being processed.
|
|
1308
|
+
*/
|
|
1309
|
+
PROCESSING: 1,
|
|
1310
|
+
/**
|
|
1311
|
+
* The job has been completed successfully.
|
|
1312
|
+
*/
|
|
1313
|
+
COMPLETED: 2,
|
|
1314
|
+
/**
|
|
1315
|
+
* The job has failed, see error_message field for more details.
|
|
1316
|
+
*/
|
|
1317
|
+
FAILED: 3
|
|
1283
1318
|
};
|
|
1284
1319
|
export const ApplicationIdentityProviderAuthType = {
|
|
1285
1320
|
OIDC: "OIDC",
|
|
@@ -1350,11 +1385,12 @@ export const ConnectedAccountVisibility = {
|
|
|
1350
1385
|
EVERYONE: 1
|
|
1351
1386
|
};
|
|
1352
1387
|
export const make = (httpClient, options = {}) => {
|
|
1353
|
-
const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1388
|
+
const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.HttpClientError({
|
|
1389
|
+
reason: new HttpClientError.StatusCodeError({
|
|
1390
|
+
request: response.request,
|
|
1391
|
+
response,
|
|
1392
|
+
description: typeof description === "string" ? description : JSON.stringify(description)
|
|
1393
|
+
})
|
|
1358
1394
|
})));
|
|
1359
1395
|
const withResponse = options.transformClient ? f => request => Effect.flatMap(Effect.flatMap(options.transformClient(httpClient), client => client.execute(request)), f) : f => request => Effect.flatMap(httpClient.execute(request), f);
|
|
1360
1396
|
const decodeSuccess = response => response.json;
|
|
@@ -1383,7 +1419,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1383
1419
|
"429": "RatelimitedResponse",
|
|
1384
1420
|
"4xx": "ErrorResponse"
|
|
1385
1421
|
})),
|
|
1386
|
-
updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.
|
|
1422
|
+
updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1387
1423
|
"429": "RatelimitedResponse",
|
|
1388
1424
|
"4xx": "ErrorResponse"
|
|
1389
1425
|
})),
|
|
@@ -1391,7 +1427,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1391
1427
|
"429": "RatelimitedResponse",
|
|
1392
1428
|
"4xx": "ErrorResponse"
|
|
1393
1429
|
})),
|
|
1394
|
-
updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.
|
|
1430
|
+
updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1395
1431
|
"429": "RatelimitedResponse",
|
|
1396
1432
|
"4xx": "ErrorResponse"
|
|
1397
1433
|
})),
|
|
@@ -1409,11 +1445,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1409
1445
|
"429": "RatelimitedResponse",
|
|
1410
1446
|
"4xx": "ErrorResponse"
|
|
1411
1447
|
})),
|
|
1412
|
-
bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.
|
|
1448
|
+
bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1413
1449
|
"429": "RatelimitedResponse",
|
|
1414
1450
|
"4xx": "ErrorResponse"
|
|
1415
1451
|
})),
|
|
1416
|
-
createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.
|
|
1452
|
+
createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1417
1453
|
"429": "RatelimitedResponse",
|
|
1418
1454
|
"4xx": "ErrorResponse"
|
|
1419
1455
|
})),
|
|
@@ -1421,11 +1457,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1421
1457
|
"429": "RatelimitedResponse",
|
|
1422
1458
|
"4xx": "ErrorResponse"
|
|
1423
1459
|
})),
|
|
1424
|
-
deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.
|
|
1460
|
+
deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1425
1461
|
"429": "RatelimitedResponse",
|
|
1426
1462
|
"4xx": "ErrorResponse"
|
|
1427
1463
|
})),
|
|
1428
|
-
updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.
|
|
1464
|
+
updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1429
1465
|
"429": "RatelimitedResponse",
|
|
1430
1466
|
"4xx": "ErrorResponse"
|
|
1431
1467
|
})),
|
|
@@ -1433,7 +1469,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1433
1469
|
"429": "RatelimitedResponse",
|
|
1434
1470
|
"4xx": "ErrorResponse"
|
|
1435
1471
|
})),
|
|
1436
|
-
createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.
|
|
1472
|
+
createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1437
1473
|
"429": "RatelimitedResponse",
|
|
1438
1474
|
"4xx": "ErrorResponse"
|
|
1439
1475
|
})),
|
|
@@ -1441,11 +1477,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1441
1477
|
"429": "RatelimitedResponse",
|
|
1442
1478
|
"4xx": "ErrorResponse"
|
|
1443
1479
|
})),
|
|
1444
|
-
deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.
|
|
1480
|
+
deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.delete(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1445
1481
|
"429": "RatelimitedResponse",
|
|
1446
1482
|
"4xx": "ErrorResponse"
|
|
1447
1483
|
})),
|
|
1448
|
-
updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.
|
|
1484
|
+
updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1449
1485
|
"429": "RatelimitedResponse",
|
|
1450
1486
|
"4xx": "ErrorResponse"
|
|
1451
1487
|
})),
|
|
@@ -1463,7 +1499,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1463
1499
|
"429": "RatelimitedResponse",
|
|
1464
1500
|
"4xx": "ErrorResponse"
|
|
1465
1501
|
})),
|
|
1466
|
-
createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.
|
|
1502
|
+
createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1467
1503
|
"429": "RatelimitedResponse",
|
|
1468
1504
|
"4xx": "ErrorResponse"
|
|
1469
1505
|
})),
|
|
@@ -1471,7 +1507,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1471
1507
|
"429": "RatelimitedResponse",
|
|
1472
1508
|
"4xx": "ErrorResponse"
|
|
1473
1509
|
})),
|
|
1474
|
-
deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.
|
|
1510
|
+
deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.delete(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], {
|
|
1475
1511
|
"429": "RatelimitedResponse",
|
|
1476
1512
|
"4xx": "ErrorResponse"
|
|
1477
1513
|
})),
|
|
@@ -1485,11 +1521,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1485
1521
|
"429": "RatelimitedResponse",
|
|
1486
1522
|
"4xx": "ErrorResponse"
|
|
1487
1523
|
})),
|
|
1488
|
-
bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.
|
|
1524
|
+
bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1489
1525
|
"429": "RatelimitedResponse",
|
|
1490
1526
|
"4xx": "ErrorResponse"
|
|
1491
1527
|
})),
|
|
1492
|
-
createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.
|
|
1528
|
+
createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1493
1529
|
"429": "RatelimitedResponse",
|
|
1494
1530
|
"4xx": "ErrorResponse"
|
|
1495
1531
|
})),
|
|
@@ -1501,11 +1537,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1501
1537
|
"429": "RatelimitedResponse",
|
|
1502
1538
|
"4xx": "ErrorResponse"
|
|
1503
1539
|
})),
|
|
1504
|
-
deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.
|
|
1540
|
+
deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1505
1541
|
"429": "RatelimitedResponse",
|
|
1506
1542
|
"4xx": "ErrorResponse"
|
|
1507
1543
|
})),
|
|
1508
|
-
updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.
|
|
1544
|
+
updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1509
1545
|
"429": "RatelimitedResponse",
|
|
1510
1546
|
"4xx": "ErrorResponse"
|
|
1511
1547
|
})),
|
|
@@ -1513,7 +1549,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1513
1549
|
"429": "RatelimitedResponse",
|
|
1514
1550
|
"4xx": "ErrorResponse"
|
|
1515
1551
|
})),
|
|
1516
|
-
setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.
|
|
1552
|
+
setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1517
1553
|
"429": "RatelimitedResponse",
|
|
1518
1554
|
"4xx": "ErrorResponse"
|
|
1519
1555
|
})),
|
|
@@ -1521,7 +1557,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1521
1557
|
"429": "RatelimitedResponse",
|
|
1522
1558
|
"4xx": "ErrorResponse"
|
|
1523
1559
|
})),
|
|
1524
|
-
updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.
|
|
1560
|
+
updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1525
1561
|
"429": "RatelimitedResponse",
|
|
1526
1562
|
"4xx": "ErrorResponse"
|
|
1527
1563
|
})),
|
|
@@ -1529,15 +1565,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
1529
1565
|
"429": "RatelimitedResponse",
|
|
1530
1566
|
"4xx": "ErrorResponse"
|
|
1531
1567
|
})),
|
|
1532
|
-
deleteChannel: channelId => HttpClientRequest.
|
|
1568
|
+
deleteChannel: channelId => HttpClientRequest.delete(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
|
|
1533
1569
|
"429": "RatelimitedResponse",
|
|
1534
1570
|
"4xx": "ErrorResponse"
|
|
1535
1571
|
})),
|
|
1536
|
-
updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.
|
|
1572
|
+
updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1537
1573
|
"429": "RatelimitedResponse",
|
|
1538
1574
|
"4xx": "ErrorResponse"
|
|
1539
1575
|
})),
|
|
1540
|
-
followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.
|
|
1576
|
+
followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1541
1577
|
"429": "RatelimitedResponse",
|
|
1542
1578
|
"4xx": "ErrorResponse"
|
|
1543
1579
|
})),
|
|
@@ -1545,7 +1581,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1545
1581
|
"429": "RatelimitedResponse",
|
|
1546
1582
|
"4xx": "ErrorResponse"
|
|
1547
1583
|
})),
|
|
1548
|
-
createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.
|
|
1584
|
+
createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1549
1585
|
"429": "RatelimitedResponse",
|
|
1550
1586
|
"4xx": "ErrorResponse"
|
|
1551
1587
|
})),
|
|
@@ -1558,11 +1594,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1558
1594
|
"429": "RatelimitedResponse",
|
|
1559
1595
|
"4xx": "ErrorResponse"
|
|
1560
1596
|
})),
|
|
1561
|
-
createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.
|
|
1597
|
+
createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1562
1598
|
"429": "RatelimitedResponse",
|
|
1563
1599
|
"4xx": "ErrorResponse"
|
|
1564
1600
|
})),
|
|
1565
|
-
bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.
|
|
1601
|
+
bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1566
1602
|
"429": "RatelimitedResponse",
|
|
1567
1603
|
"4xx": "ErrorResponse"
|
|
1568
1604
|
})),
|
|
@@ -1577,7 +1613,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1577
1613
|
"429": "RatelimitedResponse",
|
|
1578
1614
|
"4xx": "ErrorResponse"
|
|
1579
1615
|
})),
|
|
1580
|
-
deletePin: (channelId, messageId) => HttpClientRequest.
|
|
1616
|
+
deletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
|
|
1581
1617
|
"429": "RatelimitedResponse",
|
|
1582
1618
|
"4xx": "ErrorResponse"
|
|
1583
1619
|
})),
|
|
@@ -1585,11 +1621,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1585
1621
|
"429": "RatelimitedResponse",
|
|
1586
1622
|
"4xx": "ErrorResponse"
|
|
1587
1623
|
})),
|
|
1588
|
-
deleteMessage: (channelId, messageId) => HttpClientRequest.
|
|
1624
|
+
deleteMessage: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], {
|
|
1589
1625
|
"429": "RatelimitedResponse",
|
|
1590
1626
|
"4xx": "ErrorResponse"
|
|
1591
1627
|
})),
|
|
1592
|
-
updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.
|
|
1628
|
+
updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1593
1629
|
"429": "RatelimitedResponse",
|
|
1594
1630
|
"4xx": "ErrorResponse"
|
|
1595
1631
|
})),
|
|
@@ -1597,7 +1633,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1597
1633
|
"429": "RatelimitedResponse",
|
|
1598
1634
|
"4xx": "ErrorResponse"
|
|
1599
1635
|
})),
|
|
1600
|
-
deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.
|
|
1636
|
+
deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], {
|
|
1601
1637
|
"429": "RatelimitedResponse",
|
|
1602
1638
|
"4xx": "ErrorResponse"
|
|
1603
1639
|
})),
|
|
@@ -1609,7 +1645,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1609
1645
|
"429": "RatelimitedResponse",
|
|
1610
1646
|
"4xx": "ErrorResponse"
|
|
1611
1647
|
})),
|
|
1612
|
-
deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.
|
|
1648
|
+
deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], {
|
|
1613
1649
|
"429": "RatelimitedResponse",
|
|
1614
1650
|
"4xx": "ErrorResponse"
|
|
1615
1651
|
})),
|
|
@@ -1617,23 +1653,23 @@ export const make = (httpClient, options = {}) => {
|
|
|
1617
1653
|
"429": "RatelimitedResponse",
|
|
1618
1654
|
"4xx": "ErrorResponse"
|
|
1619
1655
|
})),
|
|
1620
|
-
deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.
|
|
1656
|
+
deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
|
|
1621
1657
|
"429": "RatelimitedResponse",
|
|
1622
1658
|
"4xx": "ErrorResponse"
|
|
1623
1659
|
})),
|
|
1624
|
-
deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.
|
|
1660
|
+
deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], {
|
|
1625
1661
|
"429": "RatelimitedResponse",
|
|
1626
1662
|
"4xx": "ErrorResponse"
|
|
1627
1663
|
})),
|
|
1628
|
-
createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.
|
|
1664
|
+
createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1629
1665
|
"429": "RatelimitedResponse",
|
|
1630
1666
|
"4xx": "ErrorResponse"
|
|
1631
1667
|
})),
|
|
1632
|
-
setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.
|
|
1668
|
+
setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1633
1669
|
"429": "RatelimitedResponse",
|
|
1634
1670
|
"4xx": "ErrorResponse"
|
|
1635
1671
|
})),
|
|
1636
|
-
deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.
|
|
1672
|
+
deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.delete(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], {
|
|
1637
1673
|
"429": "RatelimitedResponse",
|
|
1638
1674
|
"4xx": "ErrorResponse"
|
|
1639
1675
|
})),
|
|
@@ -1645,7 +1681,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1645
1681
|
"429": "RatelimitedResponse",
|
|
1646
1682
|
"4xx": "ErrorResponse"
|
|
1647
1683
|
})),
|
|
1648
|
-
deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.
|
|
1684
|
+
deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
|
|
1649
1685
|
"429": "RatelimitedResponse",
|
|
1650
1686
|
"4xx": "ErrorResponse"
|
|
1651
1687
|
})),
|
|
@@ -1660,15 +1696,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
1660
1696
|
"429": "RatelimitedResponse",
|
|
1661
1697
|
"4xx": "ErrorResponse"
|
|
1662
1698
|
})),
|
|
1663
|
-
addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.
|
|
1699
|
+
addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1664
1700
|
"429": "RatelimitedResponse",
|
|
1665
1701
|
"4xx": "ErrorResponse"
|
|
1666
1702
|
})),
|
|
1667
|
-
deleteGroupDmUser: (channelId, userId) => HttpClientRequest.
|
|
1703
|
+
deleteGroupDmUser: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], {
|
|
1668
1704
|
"429": "RatelimitedResponse",
|
|
1669
1705
|
"4xx": "ErrorResponse"
|
|
1670
1706
|
})),
|
|
1671
|
-
sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.
|
|
1707
|
+
sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1672
1708
|
"429": "RatelimitedResponse",
|
|
1673
1709
|
"4xx": "ErrorResponse"
|
|
1674
1710
|
})),
|
|
@@ -1684,7 +1720,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1684
1720
|
"429": "RatelimitedResponse",
|
|
1685
1721
|
"4xx": "ErrorResponse"
|
|
1686
1722
|
})),
|
|
1687
|
-
leaveThread: channelId => HttpClientRequest.
|
|
1723
|
+
leaveThread: channelId => HttpClientRequest.delete(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
|
|
1688
1724
|
"429": "RatelimitedResponse",
|
|
1689
1725
|
"4xx": "ErrorResponse"
|
|
1690
1726
|
})),
|
|
@@ -1698,11 +1734,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1698
1734
|
"429": "RatelimitedResponse",
|
|
1699
1735
|
"4xx": "ErrorResponse"
|
|
1700
1736
|
})),
|
|
1701
|
-
deleteThreadMember: (channelId, userId) => HttpClientRequest.
|
|
1737
|
+
deleteThreadMember: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
|
|
1702
1738
|
"429": "RatelimitedResponse",
|
|
1703
1739
|
"4xx": "ErrorResponse"
|
|
1704
1740
|
})),
|
|
1705
|
-
createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.
|
|
1741
|
+
createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1706
1742
|
"429": "RatelimitedResponse",
|
|
1707
1743
|
"4xx": "ErrorResponse"
|
|
1708
1744
|
})),
|
|
@@ -1751,7 +1787,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1751
1787
|
"429": "RatelimitedResponse",
|
|
1752
1788
|
"4xx": "ErrorResponse"
|
|
1753
1789
|
})),
|
|
1754
|
-
createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.
|
|
1790
|
+
createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1755
1791
|
"429": "RatelimitedResponse",
|
|
1756
1792
|
"4xx": "ErrorResponse"
|
|
1757
1793
|
})),
|
|
@@ -1773,7 +1809,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1773
1809
|
"429": "RatelimitedResponse",
|
|
1774
1810
|
"4xx": "ErrorResponse"
|
|
1775
1811
|
})),
|
|
1776
|
-
updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.
|
|
1812
|
+
updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1777
1813
|
"429": "RatelimitedResponse",
|
|
1778
1814
|
"4xx": "ErrorResponse"
|
|
1779
1815
|
})),
|
|
@@ -1792,7 +1828,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1792
1828
|
"429": "RatelimitedResponse",
|
|
1793
1829
|
"4xx": "ErrorResponse"
|
|
1794
1830
|
})),
|
|
1795
|
-
createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.
|
|
1831
|
+
createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1796
1832
|
"429": "RatelimitedResponse",
|
|
1797
1833
|
"4xx": "ErrorResponse"
|
|
1798
1834
|
})),
|
|
@@ -1800,11 +1836,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1800
1836
|
"429": "RatelimitedResponse",
|
|
1801
1837
|
"4xx": "ErrorResponse"
|
|
1802
1838
|
})),
|
|
1803
|
-
deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.
|
|
1839
|
+
deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.delete(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], {
|
|
1804
1840
|
"429": "RatelimitedResponse",
|
|
1805
1841
|
"4xx": "ErrorResponse"
|
|
1806
1842
|
})),
|
|
1807
|
-
updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.
|
|
1843
|
+
updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1808
1844
|
"429": "RatelimitedResponse",
|
|
1809
1845
|
"4xx": "ErrorResponse"
|
|
1810
1846
|
})),
|
|
@@ -1820,15 +1856,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
1820
1856
|
"429": "RatelimitedResponse",
|
|
1821
1857
|
"4xx": "ErrorResponse"
|
|
1822
1858
|
})),
|
|
1823
|
-
banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.
|
|
1859
|
+
banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1824
1860
|
"429": "RatelimitedResponse",
|
|
1825
1861
|
"4xx": "ErrorResponse"
|
|
1826
1862
|
})),
|
|
1827
|
-
unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.
|
|
1863
|
+
unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1828
1864
|
"429": "RatelimitedResponse",
|
|
1829
1865
|
"4xx": "ErrorResponse"
|
|
1830
1866
|
})),
|
|
1831
|
-
bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.
|
|
1867
|
+
bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1832
1868
|
"429": "RatelimitedResponse",
|
|
1833
1869
|
"4xx": "ErrorResponse"
|
|
1834
1870
|
})),
|
|
@@ -1836,11 +1872,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1836
1872
|
"429": "RatelimitedResponse",
|
|
1837
1873
|
"4xx": "ErrorResponse"
|
|
1838
1874
|
})),
|
|
1839
|
-
createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.
|
|
1875
|
+
createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1840
1876
|
"429": "RatelimitedResponse",
|
|
1841
1877
|
"4xx": "ErrorResponse"
|
|
1842
1878
|
})),
|
|
1843
|
-
bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.
|
|
1879
|
+
bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1844
1880
|
"429": "RatelimitedResponse",
|
|
1845
1881
|
"4xx": "ErrorResponse"
|
|
1846
1882
|
})),
|
|
@@ -1848,7 +1884,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1848
1884
|
"429": "RatelimitedResponse",
|
|
1849
1885
|
"4xx": "ErrorResponse"
|
|
1850
1886
|
})),
|
|
1851
|
-
createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.
|
|
1887
|
+
createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1852
1888
|
"429": "RatelimitedResponse",
|
|
1853
1889
|
"4xx": "ErrorResponse"
|
|
1854
1890
|
})),
|
|
@@ -1856,11 +1892,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1856
1892
|
"429": "RatelimitedResponse",
|
|
1857
1893
|
"4xx": "ErrorResponse"
|
|
1858
1894
|
})),
|
|
1859
|
-
deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.
|
|
1895
|
+
deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1860
1896
|
"429": "RatelimitedResponse",
|
|
1861
1897
|
"4xx": "ErrorResponse"
|
|
1862
1898
|
})),
|
|
1863
|
-
updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.
|
|
1899
|
+
updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1864
1900
|
"429": "RatelimitedResponse",
|
|
1865
1901
|
"4xx": "ErrorResponse"
|
|
1866
1902
|
})),
|
|
@@ -1868,7 +1904,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1868
1904
|
"429": "RatelimitedResponse",
|
|
1869
1905
|
"4xx": "ErrorResponse"
|
|
1870
1906
|
})),
|
|
1871
|
-
deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.
|
|
1907
|
+
deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.delete(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], {
|
|
1872
1908
|
"429": "RatelimitedResponse",
|
|
1873
1909
|
"4xx": "ErrorResponse"
|
|
1874
1910
|
})),
|
|
@@ -1883,7 +1919,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1883
1919
|
"429": "RatelimitedResponse",
|
|
1884
1920
|
"4xx": "ErrorResponse"
|
|
1885
1921
|
})),
|
|
1886
|
-
updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.
|
|
1922
|
+
updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1887
1923
|
"429": "RatelimitedResponse",
|
|
1888
1924
|
"4xx": "ErrorResponse"
|
|
1889
1925
|
})),
|
|
@@ -1898,15 +1934,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
1898
1934
|
"429": "RatelimitedResponse",
|
|
1899
1935
|
"4xx": "ErrorResponse"
|
|
1900
1936
|
})),
|
|
1901
|
-
addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.
|
|
1937
|
+
addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1902
1938
|
"429": "RatelimitedResponse",
|
|
1903
1939
|
"4xx": "ErrorResponse"
|
|
1904
1940
|
})),
|
|
1905
|
-
deleteGuildMember: (guildId, userId) => HttpClientRequest.
|
|
1941
|
+
deleteGuildMember: (guildId, userId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], {
|
|
1906
1942
|
"429": "RatelimitedResponse",
|
|
1907
1943
|
"4xx": "ErrorResponse"
|
|
1908
1944
|
})),
|
|
1909
|
-
updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.
|
|
1945
|
+
updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1910
1946
|
"429": "RatelimitedResponse",
|
|
1911
1947
|
"4xx": "ErrorResponse"
|
|
1912
1948
|
})),
|
|
@@ -1914,7 +1950,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1914
1950
|
"429": "RatelimitedResponse",
|
|
1915
1951
|
"4xx": "ErrorResponse"
|
|
1916
1952
|
})),
|
|
1917
|
-
deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.
|
|
1953
|
+
deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1918
1954
|
"429": "RatelimitedResponse",
|
|
1919
1955
|
"4xx": "ErrorResponse"
|
|
1920
1956
|
})),
|
|
@@ -1926,7 +1962,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1926
1962
|
"429": "RatelimitedResponse",
|
|
1927
1963
|
"4xx": "ErrorResponse"
|
|
1928
1964
|
})),
|
|
1929
|
-
putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.
|
|
1965
|
+
putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1930
1966
|
"429": "RatelimitedResponse",
|
|
1931
1967
|
"4xx": "ErrorResponse"
|
|
1932
1968
|
})),
|
|
@@ -1941,7 +1977,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1941
1977
|
"429": "RatelimitedResponse",
|
|
1942
1978
|
"4xx": "ErrorResponse"
|
|
1943
1979
|
})),
|
|
1944
|
-
pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.
|
|
1980
|
+
pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1945
1981
|
"429": "RatelimitedResponse",
|
|
1946
1982
|
"4xx": "ErrorResponse"
|
|
1947
1983
|
})),
|
|
@@ -1953,11 +1989,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
1953
1989
|
"429": "RatelimitedResponse",
|
|
1954
1990
|
"4xx": "ErrorResponse"
|
|
1955
1991
|
})),
|
|
1956
|
-
createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.
|
|
1992
|
+
createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1993
|
+
"429": "RatelimitedResponse",
|
|
1994
|
+
"4xx": "ErrorResponse"
|
|
1995
|
+
})),
|
|
1996
|
+
bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1957
1997
|
"429": "RatelimitedResponse",
|
|
1958
1998
|
"4xx": "ErrorResponse"
|
|
1959
1999
|
})),
|
|
1960
|
-
|
|
2000
|
+
guildRoleMemberCounts: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(onRequest(["2xx"], {
|
|
1961
2001
|
"429": "RatelimitedResponse",
|
|
1962
2002
|
"4xx": "ErrorResponse"
|
|
1963
2003
|
})),
|
|
@@ -1965,11 +2005,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1965
2005
|
"429": "RatelimitedResponse",
|
|
1966
2006
|
"4xx": "ErrorResponse"
|
|
1967
2007
|
})),
|
|
1968
|
-
deleteGuildRole: (guildId, roleId) => HttpClientRequest.
|
|
2008
|
+
deleteGuildRole: (guildId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1969
2009
|
"429": "RatelimitedResponse",
|
|
1970
2010
|
"4xx": "ErrorResponse"
|
|
1971
2011
|
})),
|
|
1972
|
-
updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.
|
|
2012
|
+
updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1973
2013
|
"429": "RatelimitedResponse",
|
|
1974
2014
|
"4xx": "ErrorResponse"
|
|
1975
2015
|
})),
|
|
@@ -1979,7 +2019,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1979
2019
|
"429": "RatelimitedResponse",
|
|
1980
2020
|
"4xx": "ErrorResponse"
|
|
1981
2021
|
})),
|
|
1982
|
-
createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.
|
|
2022
|
+
createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1983
2023
|
"429": "RatelimitedResponse",
|
|
1984
2024
|
"4xx": "ErrorResponse"
|
|
1985
2025
|
})),
|
|
@@ -1989,11 +2029,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1989
2029
|
"429": "RatelimitedResponse",
|
|
1990
2030
|
"4xx": "ErrorResponse"
|
|
1991
2031
|
})),
|
|
1992
|
-
deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.
|
|
2032
|
+
deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], {
|
|
1993
2033
|
"429": "RatelimitedResponse",
|
|
1994
2034
|
"4xx": "ErrorResponse"
|
|
1995
2035
|
})),
|
|
1996
|
-
updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.
|
|
2036
|
+
updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1997
2037
|
"429": "RatelimitedResponse",
|
|
1998
2038
|
"4xx": "ErrorResponse"
|
|
1999
2039
|
})),
|
|
@@ -2010,7 +2050,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2010
2050
|
"429": "RatelimitedResponse",
|
|
2011
2051
|
"4xx": "ErrorResponse"
|
|
2012
2052
|
})),
|
|
2013
|
-
createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.
|
|
2053
|
+
createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2014
2054
|
"429": "RatelimitedResponse",
|
|
2015
2055
|
"4xx": "ErrorResponse"
|
|
2016
2056
|
})),
|
|
@@ -2018,11 +2058,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2018
2058
|
"429": "RatelimitedResponse",
|
|
2019
2059
|
"4xx": "ErrorResponse"
|
|
2020
2060
|
})),
|
|
2021
|
-
deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.
|
|
2061
|
+
deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.delete(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], {
|
|
2022
2062
|
"429": "RatelimitedResponse",
|
|
2023
2063
|
"4xx": "ErrorResponse"
|
|
2024
2064
|
})),
|
|
2025
|
-
updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.
|
|
2065
|
+
updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2026
2066
|
"429": "RatelimitedResponse",
|
|
2027
2067
|
"4xx": "ErrorResponse"
|
|
2028
2068
|
})),
|
|
@@ -2038,11 +2078,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2038
2078
|
"429": "RatelimitedResponse",
|
|
2039
2079
|
"4xx": "ErrorResponse"
|
|
2040
2080
|
})),
|
|
2041
|
-
deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.
|
|
2081
|
+
deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], {
|
|
2042
2082
|
"429": "RatelimitedResponse",
|
|
2043
2083
|
"4xx": "ErrorResponse"
|
|
2044
2084
|
})),
|
|
2045
|
-
updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.
|
|
2085
|
+
updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2046
2086
|
"429": "RatelimitedResponse",
|
|
2047
2087
|
"4xx": "ErrorResponse"
|
|
2048
2088
|
})),
|
|
@@ -2050,7 +2090,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2050
2090
|
"429": "RatelimitedResponse",
|
|
2051
2091
|
"4xx": "ErrorResponse"
|
|
2052
2092
|
})),
|
|
2053
|
-
createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.
|
|
2093
|
+
createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2054
2094
|
"429": "RatelimitedResponse",
|
|
2055
2095
|
"4xx": "ErrorResponse"
|
|
2056
2096
|
})),
|
|
@@ -2058,11 +2098,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2058
2098
|
"429": "RatelimitedResponse",
|
|
2059
2099
|
"4xx": "ErrorResponse"
|
|
2060
2100
|
})),
|
|
2061
|
-
deleteGuildTemplate: (guildId, code) => HttpClientRequest.
|
|
2101
|
+
deleteGuildTemplate: (guildId, code) => HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
|
|
2062
2102
|
"429": "RatelimitedResponse",
|
|
2063
2103
|
"4xx": "ErrorResponse"
|
|
2064
2104
|
})),
|
|
2065
|
-
updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.
|
|
2105
|
+
updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2066
2106
|
"429": "RatelimitedResponse",
|
|
2067
2107
|
"4xx": "ErrorResponse"
|
|
2068
2108
|
})),
|
|
@@ -2078,7 +2118,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2078
2118
|
"429": "RatelimitedResponse",
|
|
2079
2119
|
"4xx": "ErrorResponse"
|
|
2080
2120
|
})),
|
|
2081
|
-
updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.
|
|
2121
|
+
updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2082
2122
|
"429": "RatelimitedResponse",
|
|
2083
2123
|
"4xx": "ErrorResponse"
|
|
2084
2124
|
})),
|
|
@@ -2086,7 +2126,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2086
2126
|
"429": "RatelimitedResponse",
|
|
2087
2127
|
"4xx": "ErrorResponse"
|
|
2088
2128
|
})),
|
|
2089
|
-
updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.
|
|
2129
|
+
updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2090
2130
|
"429": "RatelimitedResponse",
|
|
2091
2131
|
"4xx": "ErrorResponse"
|
|
2092
2132
|
})),
|
|
@@ -2098,7 +2138,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2098
2138
|
"429": "RatelimitedResponse",
|
|
2099
2139
|
"4xx": "ErrorResponse"
|
|
2100
2140
|
})),
|
|
2101
|
-
updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.
|
|
2141
|
+
updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2102
2142
|
"429": "RatelimitedResponse",
|
|
2103
2143
|
"4xx": "ErrorResponse"
|
|
2104
2144
|
})),
|
|
@@ -2106,7 +2146,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2106
2146
|
"429": "RatelimitedResponse",
|
|
2107
2147
|
"4xx": "ErrorResponse"
|
|
2108
2148
|
})),
|
|
2109
|
-
updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.
|
|
2149
|
+
updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2110
2150
|
"429": "RatelimitedResponse",
|
|
2111
2151
|
"4xx": "ErrorResponse"
|
|
2112
2152
|
})),
|
|
@@ -2122,7 +2162,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2122
2162
|
})),
|
|
2123
2163
|
createInteractionResponse: (interactionId, interactionToken, options) => HttpClientRequest.post(`/interactions/${interactionId}/${interactionToken}/callback`).pipe(HttpClientRequest.setUrlParams({
|
|
2124
2164
|
with_response: options.params?.["with_response"]
|
|
2125
|
-
}), HttpClientRequest.
|
|
2165
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2126
2166
|
"429": "RatelimitedResponse",
|
|
2127
2167
|
"4xx": "ErrorResponse"
|
|
2128
2168
|
})),
|
|
@@ -2133,15 +2173,27 @@ export const make = (httpClient, options = {}) => {
|
|
|
2133
2173
|
"429": "RatelimitedResponse",
|
|
2134
2174
|
"4xx": "ErrorResponse"
|
|
2135
2175
|
})),
|
|
2136
|
-
inviteRevoke: code => HttpClientRequest.
|
|
2176
|
+
inviteRevoke: code => HttpClientRequest.delete(`/invites/${code}`).pipe(onRequest(["2xx"], {
|
|
2137
2177
|
"429": "RatelimitedResponse",
|
|
2138
2178
|
"4xx": "ErrorResponse"
|
|
2139
2179
|
})),
|
|
2140
|
-
|
|
2180
|
+
getInviteTargetUsers: code => HttpClientRequest.get(`/invites/${code}/target-users`).pipe(onRequest([], {
|
|
2141
2181
|
"429": "RatelimitedResponse",
|
|
2142
2182
|
"4xx": "ErrorResponse"
|
|
2143
2183
|
})),
|
|
2144
|
-
|
|
2184
|
+
updateInviteTargetUsers: (code, options) => HttpClientRequest.put(`/invites/${code}/target-users`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest([], {
|
|
2185
|
+
"429": "RatelimitedResponse",
|
|
2186
|
+
"4xx": "ErrorResponse"
|
|
2187
|
+
})),
|
|
2188
|
+
getInviteTargetUsersJobStatus: code => HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(onRequest(["2xx"], {
|
|
2189
|
+
"429": "RatelimitedResponse",
|
|
2190
|
+
"4xx": "ErrorResponse"
|
|
2191
|
+
})),
|
|
2192
|
+
createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2193
|
+
"429": "RatelimitedResponse",
|
|
2194
|
+
"4xx": "ErrorResponse"
|
|
2195
|
+
})),
|
|
2196
|
+
createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2145
2197
|
"429": "RatelimitedResponse",
|
|
2146
2198
|
"4xx": "ErrorResponse"
|
|
2147
2199
|
})),
|
|
@@ -2149,15 +2201,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
2149
2201
|
"429": "RatelimitedResponse",
|
|
2150
2202
|
"4xx": "ErrorResponse"
|
|
2151
2203
|
})),
|
|
2152
|
-
editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.
|
|
2204
|
+
editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2153
2205
|
"429": "RatelimitedResponse",
|
|
2154
2206
|
"4xx": "ErrorResponse"
|
|
2155
2207
|
})),
|
|
2156
|
-
editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.
|
|
2208
|
+
editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2157
2209
|
"429": "RatelimitedResponse",
|
|
2158
2210
|
"4xx": "ErrorResponse"
|
|
2159
2211
|
})),
|
|
2160
|
-
leaveLobby: lobbyId => HttpClientRequest.
|
|
2212
|
+
leaveLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], {
|
|
2161
2213
|
"429": "RatelimitedResponse",
|
|
2162
2214
|
"4xx": "ErrorResponse"
|
|
2163
2215
|
})),
|
|
@@ -2165,15 +2217,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
2165
2217
|
"429": "RatelimitedResponse",
|
|
2166
2218
|
"4xx": "ErrorResponse"
|
|
2167
2219
|
})),
|
|
2168
|
-
bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.
|
|
2220
|
+
bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2169
2221
|
"429": "RatelimitedResponse",
|
|
2170
2222
|
"4xx": "ErrorResponse"
|
|
2171
2223
|
})),
|
|
2172
|
-
addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.
|
|
2224
|
+
addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2173
2225
|
"429": "RatelimitedResponse",
|
|
2174
2226
|
"4xx": "ErrorResponse"
|
|
2175
2227
|
})),
|
|
2176
|
-
deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.
|
|
2228
|
+
deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], {
|
|
2177
2229
|
"429": "RatelimitedResponse",
|
|
2178
2230
|
"4xx": "ErrorResponse"
|
|
2179
2231
|
})),
|
|
@@ -2187,7 +2239,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2187
2239
|
"429": "RatelimitedResponse",
|
|
2188
2240
|
"4xx": "ErrorResponse"
|
|
2189
2241
|
})),
|
|
2190
|
-
createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.
|
|
2242
|
+
createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2243
|
+
"429": "RatelimitedResponse",
|
|
2244
|
+
"4xx": "ErrorResponse"
|
|
2245
|
+
})),
|
|
2246
|
+
updateLobbyMessageExternalModerationMetadata: (lobbyId, messageId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2191
2247
|
"429": "RatelimitedResponse",
|
|
2192
2248
|
"4xx": "ErrorResponse"
|
|
2193
2249
|
})),
|
|
@@ -2207,19 +2263,23 @@ export const make = (httpClient, options = {}) => {
|
|
|
2207
2263
|
"429": "RatelimitedResponse",
|
|
2208
2264
|
"4xx": "ErrorResponse"
|
|
2209
2265
|
})),
|
|
2210
|
-
|
|
2266
|
+
updateUserMessageExternalModerationMetadata: (userId1, userId2, messageId, options) => HttpClientRequest.put(`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2267
|
+
"429": "RatelimitedResponse",
|
|
2268
|
+
"4xx": "ErrorResponse"
|
|
2269
|
+
})),
|
|
2270
|
+
partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2211
2271
|
"429": "RatelimitedResponse",
|
|
2212
2272
|
"4xx": "ErrorResponse"
|
|
2213
2273
|
})),
|
|
2214
|
-
botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.
|
|
2274
|
+
botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2215
2275
|
"429": "RatelimitedResponse",
|
|
2216
2276
|
"4xx": "ErrorResponse"
|
|
2217
2277
|
})),
|
|
2218
|
-
partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.
|
|
2278
|
+
partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2219
2279
|
"429": "RatelimitedResponse",
|
|
2220
2280
|
"4xx": "ErrorResponse"
|
|
2221
2281
|
})),
|
|
2222
|
-
botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.
|
|
2282
|
+
botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2223
2283
|
"429": "RatelimitedResponse",
|
|
2224
2284
|
"4xx": "ErrorResponse"
|
|
2225
2285
|
})),
|
|
@@ -2227,7 +2287,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2227
2287
|
"429": "RatelimitedResponse",
|
|
2228
2288
|
"4xx": "ErrorResponse"
|
|
2229
2289
|
})),
|
|
2230
|
-
createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.
|
|
2290
|
+
createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2231
2291
|
"429": "RatelimitedResponse",
|
|
2232
2292
|
"4xx": "ErrorResponse"
|
|
2233
2293
|
})),
|
|
@@ -2235,11 +2295,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2235
2295
|
"429": "RatelimitedResponse",
|
|
2236
2296
|
"4xx": "ErrorResponse"
|
|
2237
2297
|
})),
|
|
2238
|
-
deleteStageInstance: channelId => HttpClientRequest.
|
|
2298
|
+
deleteStageInstance: channelId => HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(onRequest([], {
|
|
2239
2299
|
"429": "RatelimitedResponse",
|
|
2240
2300
|
"4xx": "ErrorResponse"
|
|
2241
2301
|
})),
|
|
2242
|
-
updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.
|
|
2302
|
+
updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2243
2303
|
"429": "RatelimitedResponse",
|
|
2244
2304
|
"4xx": "ErrorResponse"
|
|
2245
2305
|
})),
|
|
@@ -2259,7 +2319,14 @@ export const make = (httpClient, options = {}) => {
|
|
|
2259
2319
|
"429": "RatelimitedResponse",
|
|
2260
2320
|
"4xx": "ErrorResponse"
|
|
2261
2321
|
})),
|
|
2262
|
-
updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.
|
|
2322
|
+
updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2323
|
+
"429": "RatelimitedResponse",
|
|
2324
|
+
"4xx": "ErrorResponse"
|
|
2325
|
+
})),
|
|
2326
|
+
getCurrentUserApplicationEntitlements: (applicationId, options) => HttpClientRequest.get(`/users/@me/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
|
|
2327
|
+
sku_ids: options?.["sku_ids"],
|
|
2328
|
+
exclude_consumed: options?.["exclude_consumed"]
|
|
2329
|
+
}), onRequest(["2xx"], {
|
|
2263
2330
|
"429": "RatelimitedResponse",
|
|
2264
2331
|
"4xx": "ErrorResponse"
|
|
2265
2332
|
})),
|
|
@@ -2267,15 +2334,15 @@ export const make = (httpClient, options = {}) => {
|
|
|
2267
2334
|
"429": "RatelimitedResponse",
|
|
2268
2335
|
"4xx": "ErrorResponse"
|
|
2269
2336
|
})),
|
|
2270
|
-
updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.
|
|
2337
|
+
updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2271
2338
|
"429": "RatelimitedResponse",
|
|
2272
2339
|
"4xx": "ErrorResponse"
|
|
2273
2340
|
})),
|
|
2274
|
-
deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.
|
|
2341
|
+
deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.delete(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], {
|
|
2275
2342
|
"429": "RatelimitedResponse",
|
|
2276
2343
|
"4xx": "ErrorResponse"
|
|
2277
2344
|
})),
|
|
2278
|
-
createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.
|
|
2345
|
+
createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2279
2346
|
"429": "RatelimitedResponse",
|
|
2280
2347
|
"4xx": "ErrorResponse"
|
|
2281
2348
|
})),
|
|
@@ -2292,7 +2359,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2292
2359
|
"429": "RatelimitedResponse",
|
|
2293
2360
|
"4xx": "ErrorResponse"
|
|
2294
2361
|
})),
|
|
2295
|
-
leaveGuild: guildId => HttpClientRequest.
|
|
2362
|
+
leaveGuild: guildId => HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(onRequest([], {
|
|
2296
2363
|
"429": "RatelimitedResponse",
|
|
2297
2364
|
"4xx": "ErrorResponse"
|
|
2298
2365
|
})),
|
|
@@ -2312,11 +2379,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
2312
2379
|
"429": "RatelimitedResponse",
|
|
2313
2380
|
"4xx": "ErrorResponse"
|
|
2314
2381
|
})),
|
|
2315
|
-
deleteWebhook: webhookId => HttpClientRequest.
|
|
2382
|
+
deleteWebhook: webhookId => HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(onRequest([], {
|
|
2316
2383
|
"429": "RatelimitedResponse",
|
|
2317
2384
|
"4xx": "ErrorResponse"
|
|
2318
2385
|
})),
|
|
2319
|
-
updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.
|
|
2386
|
+
updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2320
2387
|
"429": "RatelimitedResponse",
|
|
2321
2388
|
"4xx": "ErrorResponse"
|
|
2322
2389
|
})),
|
|
@@ -2328,22 +2395,22 @@ export const make = (httpClient, options = {}) => {
|
|
|
2328
2395
|
wait: options.params?.["wait"],
|
|
2329
2396
|
thread_id: options.params?.["thread_id"],
|
|
2330
2397
|
with_components: options.params?.["with_components"]
|
|
2331
|
-
}), HttpClientRequest.
|
|
2398
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2332
2399
|
"429": "RatelimitedResponse",
|
|
2333
2400
|
"4xx": "ErrorResponse"
|
|
2334
2401
|
})),
|
|
2335
|
-
deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.
|
|
2402
|
+
deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], {
|
|
2336
2403
|
"429": "RatelimitedResponse",
|
|
2337
2404
|
"4xx": "ErrorResponse"
|
|
2338
2405
|
})),
|
|
2339
|
-
updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.
|
|
2406
|
+
updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2340
2407
|
"429": "RatelimitedResponse",
|
|
2341
2408
|
"4xx": "ErrorResponse"
|
|
2342
2409
|
})),
|
|
2343
2410
|
executeGithubCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/github`).pipe(HttpClientRequest.setUrlParams({
|
|
2344
2411
|
wait: options.params?.["wait"],
|
|
2345
2412
|
thread_id: options.params?.["thread_id"]
|
|
2346
|
-
}), HttpClientRequest.
|
|
2413
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest([], {
|
|
2347
2414
|
"429": "RatelimitedResponse",
|
|
2348
2415
|
"4xx": "ErrorResponse"
|
|
2349
2416
|
})),
|
|
@@ -2353,7 +2420,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2353
2420
|
"429": "RatelimitedResponse",
|
|
2354
2421
|
"4xx": "ErrorResponse"
|
|
2355
2422
|
})),
|
|
2356
|
-
deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.
|
|
2423
|
+
deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2357
2424
|
thread_id: options?.["thread_id"]
|
|
2358
2425
|
}), onRequest([], {
|
|
2359
2426
|
"429": "RatelimitedResponse",
|
|
@@ -2362,7 +2429,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2362
2429
|
updateOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2363
2430
|
thread_id: options.params?.["thread_id"],
|
|
2364
2431
|
with_components: options.params?.["with_components"]
|
|
2365
|
-
}), HttpClientRequest.
|
|
2432
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2366
2433
|
"429": "RatelimitedResponse",
|
|
2367
2434
|
"4xx": "ErrorResponse"
|
|
2368
2435
|
})),
|
|
@@ -2372,7 +2439,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
2372
2439
|
"429": "RatelimitedResponse",
|
|
2373
2440
|
"4xx": "ErrorResponse"
|
|
2374
2441
|
})),
|
|
2375
|
-
deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.
|
|
2442
|
+
deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2376
2443
|
thread_id: options?.["thread_id"]
|
|
2377
2444
|
}), onRequest([], {
|
|
2378
2445
|
"429": "RatelimitedResponse",
|
|
@@ -2381,14 +2448,14 @@ export const make = (httpClient, options = {}) => {
|
|
|
2381
2448
|
updateWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2382
2449
|
thread_id: options.params?.["thread_id"],
|
|
2383
2450
|
with_components: options.params?.["with_components"]
|
|
2384
|
-
}), HttpClientRequest.
|
|
2451
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2385
2452
|
"429": "RatelimitedResponse",
|
|
2386
2453
|
"4xx": "ErrorResponse"
|
|
2387
2454
|
})),
|
|
2388
2455
|
executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/slack`).pipe(HttpClientRequest.setUrlParams({
|
|
2389
2456
|
wait: options.params?.["wait"],
|
|
2390
2457
|
thread_id: options.params?.["thread_id"]
|
|
2391
|
-
}), HttpClientRequest.
|
|
2458
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2392
2459
|
"429": "RatelimitedResponse",
|
|
2393
2460
|
"4xx": "ErrorResponse"
|
|
2394
2461
|
}))
|