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
package/DiscordREST/Generated.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.make = exports.WidgetImageStyles = exports.WebhookTypes = exports.VideoQualityModes = exports.VerificationLevels = exports.UserNotificationSettings = exports.ThreadSortingMode = exports.ThreadSortOrder = exports.ThreadSearchTagSetting = exports.ThreadAutoArchiveDuration = exports.TextInputStyleTypes = exports.TeamMembershipStates = exports.StickerTypes = exports.StickerFormatTypes = exports.StageInstancesPrivacyLevels = exports.SortingOrder = exports.SnowflakeSelectDefaultValueTypes = exports.ReactionTypes = exports.PremiumTypes = exports.PremiumGuildTiers = exports.OnboardingPromptType = exports.OAuth2Scopes = exports.NewMemberActionType = exports.MetadataItemTypes = exports.MessageType = exports.MessageShareCustomUserThemeBaseTheme = exports.MessageComponentTypes = exports.MessageComponentSeparatorSpacingSize = exports.InviteTypes = exports.InviteTargetTypes = exports.InteractionTypes = exports.InteractionContextType = exports.InteractionCallbackTypes = exports.IntegrationTypes = exports.IntegrationExpireGracePeriodTypes = exports.IntegrationExpireBehaviorTypes = exports.GuildScheduledEventStatuses = exports.GuildScheduledEventEntityTypes = exports.GuildOnboardingMode = exports.GuildNSFWContentLevel = exports.GuildMFALevel = exports.GuildFeatures = exports.GuildExplicitContentFilterTypes = exports.ForumLayout = exports.EntitlementTypes = exports.EntitlementTenantFulfillmentStatusResponse = exports.EmbeddedActivityLocationKind = exports.DiscordRestError = exports.ConnectedAccountVisibility = exports.ConnectedAccountProviders = exports.ChannelTypes = exports.ChannelPermissionOverwrites = exports.ButtonStyleTypes = exports.AvailableLocalesEnum = exports.AutomodTriggerType = exports.AutomodKeywordPresetType = exports.AutomodEventType = exports.AutomodActionType = exports.AuditLogActionTypes = exports.ApplicationIntegrationType = exports.ApplicationIdentityProviderAuthType = exports.ApplicationExplicitContentFilterTypes = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionTypes = exports.AfkTimeouts = void 0;
|
|
7
|
-
var HttpClientError = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("
|
|
8
|
-
var HttpClientRequest = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("
|
|
9
|
-
var HttpClientResponse = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("
|
|
6
|
+
exports.make = exports.WidgetImageStyles = exports.WebhookTypes = exports.VideoQualityModes = exports.VerificationLevels = exports.UserNotificationSettings = exports.ThreadSortingMode = exports.ThreadSortOrder = exports.ThreadSearchTagSetting = exports.ThreadAutoArchiveDuration = exports.TextInputStyleTypes = exports.TeamMembershipStates = exports.TargetUsersJobStatusTypes = exports.StickerTypes = exports.StickerFormatTypes = exports.StageInstancesPrivacyLevels = exports.SortingOrder = exports.SnowflakeSelectDefaultValueTypes = exports.ReactionTypes = exports.PremiumTypes = exports.PremiumGuildTiers = exports.OnboardingPromptType = exports.OAuth2Scopes = exports.NewMemberActionType = exports.MetadataItemTypes = exports.MessageType = exports.MessageShareCustomUserThemeBaseTheme = exports.MessageComponentTypes = exports.MessageComponentSeparatorSpacingSize = exports.InviteTypes = exports.InviteTargetTypes = exports.InteractionTypes = exports.InteractionContextType = exports.InteractionCallbackTypes = exports.IntegrationTypes = exports.IntegrationExpireGracePeriodTypes = exports.IntegrationExpireBehaviorTypes = exports.GuildScheduledEventStatuses = exports.GuildScheduledEventEntityTypes = exports.GuildOnboardingMode = exports.GuildNSFWContentLevel = exports.GuildMFALevel = exports.GuildFeatures = exports.GuildExplicitContentFilterTypes = exports.ForumLayout = exports.EntitlementTypes = exports.EntitlementTenantFulfillmentStatusResponse = exports.EmbeddedActivityLocationKind = exports.DiscordRestError = exports.ConnectedAccountVisibility = exports.ConnectedAccountProviders = exports.ChannelTypes = exports.ChannelPermissionOverwrites = exports.ButtonStyleTypes = exports.AvailableLocalesEnum = exports.AutomodTriggerType = exports.AutomodKeywordPresetType = exports.AutomodEventType = exports.AutomodActionType = exports.AuditLogActionTypes = exports.ApplicationIntegrationType = exports.ApplicationIdentityProviderAuthType = exports.ApplicationExplicitContentFilterTypes = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionTypes = exports.AfkTimeouts = void 0;
|
|
7
|
+
var HttpClientError = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientError"));
|
|
8
|
+
var HttpClientRequest = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientRequest"));
|
|
9
|
+
var HttpClientResponse = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientResponse"));
|
|
10
10
|
var Data = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Data"));
|
|
11
11
|
var Effect = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Effect"));
|
|
12
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -715,7 +715,19 @@ const MessageComponentTypes = exports.MessageComponentTypes = {
|
|
|
715
715
|
/**
|
|
716
716
|
* File upload component
|
|
717
717
|
*/
|
|
718
|
-
FILE_UPLOAD: 19
|
|
718
|
+
FILE_UPLOAD: 19,
|
|
719
|
+
/**
|
|
720
|
+
* Radio group component
|
|
721
|
+
*/
|
|
722
|
+
RADIO_GROUP: 21,
|
|
723
|
+
/**
|
|
724
|
+
* Checkbox group component
|
|
725
|
+
*/
|
|
726
|
+
CHECKBOX_GROUP: 22,
|
|
727
|
+
/**
|
|
728
|
+
* Checkbox component
|
|
729
|
+
*/
|
|
730
|
+
CHECKBOX: 23
|
|
719
731
|
};
|
|
720
732
|
const ButtonStyleTypes = exports.ButtonStyleTypes = {
|
|
721
733
|
PRIMARY: 1,
|
|
@@ -786,7 +798,11 @@ const InteractionTypes = exports.InteractionTypes = {
|
|
|
786
798
|
/**
|
|
787
799
|
* Sent when a user submits a modal previously sent by your application
|
|
788
800
|
*/
|
|
789
|
-
MODAL_SUBMIT: 5
|
|
801
|
+
MODAL_SUBMIT: 5,
|
|
802
|
+
/**
|
|
803
|
+
* Sent when Discord is checking if a user can purchase a Social Layer SKU
|
|
804
|
+
*/
|
|
805
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6
|
|
790
806
|
};
|
|
791
807
|
const MessageShareCustomUserThemeBaseTheme = exports.MessageShareCustomUserThemeBaseTheme = {
|
|
792
808
|
/**
|
|
@@ -1286,7 +1302,26 @@ const InteractionCallbackTypes = exports.InteractionCallbackTypes = {
|
|
|
1286
1302
|
UPDATE_MESSAGE: 7,
|
|
1287
1303
|
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
1288
1304
|
MODAL: 9,
|
|
1289
|
-
LAUNCH_ACTIVITY: 12
|
|
1305
|
+
LAUNCH_ACTIVITY: 12,
|
|
1306
|
+
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13
|
|
1307
|
+
};
|
|
1308
|
+
const TargetUsersJobStatusTypes = exports.TargetUsersJobStatusTypes = {
|
|
1309
|
+
/**
|
|
1310
|
+
* The default value.
|
|
1311
|
+
*/
|
|
1312
|
+
UNSPECIFIED: 0,
|
|
1313
|
+
/**
|
|
1314
|
+
* The job is still being processed.
|
|
1315
|
+
*/
|
|
1316
|
+
PROCESSING: 1,
|
|
1317
|
+
/**
|
|
1318
|
+
* The job has been completed successfully.
|
|
1319
|
+
*/
|
|
1320
|
+
COMPLETED: 2,
|
|
1321
|
+
/**
|
|
1322
|
+
* The job has failed, see error_message field for more details.
|
|
1323
|
+
*/
|
|
1324
|
+
FAILED: 3
|
|
1290
1325
|
};
|
|
1291
1326
|
const ApplicationIdentityProviderAuthType = exports.ApplicationIdentityProviderAuthType = {
|
|
1292
1327
|
OIDC: "OIDC",
|
|
@@ -1357,11 +1392,12 @@ const ConnectedAccountVisibility = exports.ConnectedAccountVisibility = {
|
|
|
1357
1392
|
EVERYONE: 1
|
|
1358
1393
|
};
|
|
1359
1394
|
const make = (httpClient, options = {}) => {
|
|
1360
|
-
const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1395
|
+
const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.HttpClientError({
|
|
1396
|
+
reason: new HttpClientError.StatusCodeError({
|
|
1397
|
+
request: response.request,
|
|
1398
|
+
response,
|
|
1399
|
+
description: typeof description === "string" ? description : JSON.stringify(description)
|
|
1400
|
+
})
|
|
1365
1401
|
})));
|
|
1366
1402
|
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);
|
|
1367
1403
|
const decodeSuccess = response => response.json;
|
|
@@ -1390,7 +1426,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1390
1426
|
"429": "RatelimitedResponse",
|
|
1391
1427
|
"4xx": "ErrorResponse"
|
|
1392
1428
|
})),
|
|
1393
|
-
updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.
|
|
1429
|
+
updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1394
1430
|
"429": "RatelimitedResponse",
|
|
1395
1431
|
"4xx": "ErrorResponse"
|
|
1396
1432
|
})),
|
|
@@ -1398,7 +1434,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1398
1434
|
"429": "RatelimitedResponse",
|
|
1399
1435
|
"4xx": "ErrorResponse"
|
|
1400
1436
|
})),
|
|
1401
|
-
updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.
|
|
1437
|
+
updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1402
1438
|
"429": "RatelimitedResponse",
|
|
1403
1439
|
"4xx": "ErrorResponse"
|
|
1404
1440
|
})),
|
|
@@ -1416,11 +1452,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1416
1452
|
"429": "RatelimitedResponse",
|
|
1417
1453
|
"4xx": "ErrorResponse"
|
|
1418
1454
|
})),
|
|
1419
|
-
bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.
|
|
1455
|
+
bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1420
1456
|
"429": "RatelimitedResponse",
|
|
1421
1457
|
"4xx": "ErrorResponse"
|
|
1422
1458
|
})),
|
|
1423
|
-
createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.
|
|
1459
|
+
createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1424
1460
|
"429": "RatelimitedResponse",
|
|
1425
1461
|
"4xx": "ErrorResponse"
|
|
1426
1462
|
})),
|
|
@@ -1428,11 +1464,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1428
1464
|
"429": "RatelimitedResponse",
|
|
1429
1465
|
"4xx": "ErrorResponse"
|
|
1430
1466
|
})),
|
|
1431
|
-
deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.
|
|
1467
|
+
deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1432
1468
|
"429": "RatelimitedResponse",
|
|
1433
1469
|
"4xx": "ErrorResponse"
|
|
1434
1470
|
})),
|
|
1435
|
-
updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.
|
|
1471
|
+
updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1436
1472
|
"429": "RatelimitedResponse",
|
|
1437
1473
|
"4xx": "ErrorResponse"
|
|
1438
1474
|
})),
|
|
@@ -1440,7 +1476,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1440
1476
|
"429": "RatelimitedResponse",
|
|
1441
1477
|
"4xx": "ErrorResponse"
|
|
1442
1478
|
})),
|
|
1443
|
-
createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.
|
|
1479
|
+
createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1444
1480
|
"429": "RatelimitedResponse",
|
|
1445
1481
|
"4xx": "ErrorResponse"
|
|
1446
1482
|
})),
|
|
@@ -1448,11 +1484,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1448
1484
|
"429": "RatelimitedResponse",
|
|
1449
1485
|
"4xx": "ErrorResponse"
|
|
1450
1486
|
})),
|
|
1451
|
-
deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.
|
|
1487
|
+
deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.delete(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1452
1488
|
"429": "RatelimitedResponse",
|
|
1453
1489
|
"4xx": "ErrorResponse"
|
|
1454
1490
|
})),
|
|
1455
|
-
updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.
|
|
1491
|
+
updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1456
1492
|
"429": "RatelimitedResponse",
|
|
1457
1493
|
"4xx": "ErrorResponse"
|
|
1458
1494
|
})),
|
|
@@ -1470,7 +1506,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1470
1506
|
"429": "RatelimitedResponse",
|
|
1471
1507
|
"4xx": "ErrorResponse"
|
|
1472
1508
|
})),
|
|
1473
|
-
createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.
|
|
1509
|
+
createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1474
1510
|
"429": "RatelimitedResponse",
|
|
1475
1511
|
"4xx": "ErrorResponse"
|
|
1476
1512
|
})),
|
|
@@ -1478,7 +1514,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1478
1514
|
"429": "RatelimitedResponse",
|
|
1479
1515
|
"4xx": "ErrorResponse"
|
|
1480
1516
|
})),
|
|
1481
|
-
deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.
|
|
1517
|
+
deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.delete(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], {
|
|
1482
1518
|
"429": "RatelimitedResponse",
|
|
1483
1519
|
"4xx": "ErrorResponse"
|
|
1484
1520
|
})),
|
|
@@ -1492,11 +1528,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1492
1528
|
"429": "RatelimitedResponse",
|
|
1493
1529
|
"4xx": "ErrorResponse"
|
|
1494
1530
|
})),
|
|
1495
|
-
bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.
|
|
1531
|
+
bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1496
1532
|
"429": "RatelimitedResponse",
|
|
1497
1533
|
"4xx": "ErrorResponse"
|
|
1498
1534
|
})),
|
|
1499
|
-
createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.
|
|
1535
|
+
createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1500
1536
|
"429": "RatelimitedResponse",
|
|
1501
1537
|
"4xx": "ErrorResponse"
|
|
1502
1538
|
})),
|
|
@@ -1508,11 +1544,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1508
1544
|
"429": "RatelimitedResponse",
|
|
1509
1545
|
"4xx": "ErrorResponse"
|
|
1510
1546
|
})),
|
|
1511
|
-
deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.
|
|
1547
|
+
deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1512
1548
|
"429": "RatelimitedResponse",
|
|
1513
1549
|
"4xx": "ErrorResponse"
|
|
1514
1550
|
})),
|
|
1515
|
-
updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.
|
|
1551
|
+
updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1516
1552
|
"429": "RatelimitedResponse",
|
|
1517
1553
|
"4xx": "ErrorResponse"
|
|
1518
1554
|
})),
|
|
@@ -1520,7 +1556,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1520
1556
|
"429": "RatelimitedResponse",
|
|
1521
1557
|
"4xx": "ErrorResponse"
|
|
1522
1558
|
})),
|
|
1523
|
-
setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.
|
|
1559
|
+
setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1524
1560
|
"429": "RatelimitedResponse",
|
|
1525
1561
|
"4xx": "ErrorResponse"
|
|
1526
1562
|
})),
|
|
@@ -1528,7 +1564,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1528
1564
|
"429": "RatelimitedResponse",
|
|
1529
1565
|
"4xx": "ErrorResponse"
|
|
1530
1566
|
})),
|
|
1531
|
-
updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.
|
|
1567
|
+
updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1532
1568
|
"429": "RatelimitedResponse",
|
|
1533
1569
|
"4xx": "ErrorResponse"
|
|
1534
1570
|
})),
|
|
@@ -1536,15 +1572,15 @@ const make = (httpClient, options = {}) => {
|
|
|
1536
1572
|
"429": "RatelimitedResponse",
|
|
1537
1573
|
"4xx": "ErrorResponse"
|
|
1538
1574
|
})),
|
|
1539
|
-
deleteChannel: channelId => HttpClientRequest.
|
|
1575
|
+
deleteChannel: channelId => HttpClientRequest.delete(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
|
|
1540
1576
|
"429": "RatelimitedResponse",
|
|
1541
1577
|
"4xx": "ErrorResponse"
|
|
1542
1578
|
})),
|
|
1543
|
-
updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.
|
|
1579
|
+
updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1544
1580
|
"429": "RatelimitedResponse",
|
|
1545
1581
|
"4xx": "ErrorResponse"
|
|
1546
1582
|
})),
|
|
1547
|
-
followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.
|
|
1583
|
+
followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1548
1584
|
"429": "RatelimitedResponse",
|
|
1549
1585
|
"4xx": "ErrorResponse"
|
|
1550
1586
|
})),
|
|
@@ -1552,7 +1588,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1552
1588
|
"429": "RatelimitedResponse",
|
|
1553
1589
|
"4xx": "ErrorResponse"
|
|
1554
1590
|
})),
|
|
1555
|
-
createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.
|
|
1591
|
+
createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1556
1592
|
"429": "RatelimitedResponse",
|
|
1557
1593
|
"4xx": "ErrorResponse"
|
|
1558
1594
|
})),
|
|
@@ -1565,11 +1601,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1565
1601
|
"429": "RatelimitedResponse",
|
|
1566
1602
|
"4xx": "ErrorResponse"
|
|
1567
1603
|
})),
|
|
1568
|
-
createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.
|
|
1604
|
+
createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1569
1605
|
"429": "RatelimitedResponse",
|
|
1570
1606
|
"4xx": "ErrorResponse"
|
|
1571
1607
|
})),
|
|
1572
|
-
bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.
|
|
1608
|
+
bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1573
1609
|
"429": "RatelimitedResponse",
|
|
1574
1610
|
"4xx": "ErrorResponse"
|
|
1575
1611
|
})),
|
|
@@ -1584,7 +1620,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1584
1620
|
"429": "RatelimitedResponse",
|
|
1585
1621
|
"4xx": "ErrorResponse"
|
|
1586
1622
|
})),
|
|
1587
|
-
deletePin: (channelId, messageId) => HttpClientRequest.
|
|
1623
|
+
deletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
|
|
1588
1624
|
"429": "RatelimitedResponse",
|
|
1589
1625
|
"4xx": "ErrorResponse"
|
|
1590
1626
|
})),
|
|
@@ -1592,11 +1628,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1592
1628
|
"429": "RatelimitedResponse",
|
|
1593
1629
|
"4xx": "ErrorResponse"
|
|
1594
1630
|
})),
|
|
1595
|
-
deleteMessage: (channelId, messageId) => HttpClientRequest.
|
|
1631
|
+
deleteMessage: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], {
|
|
1596
1632
|
"429": "RatelimitedResponse",
|
|
1597
1633
|
"4xx": "ErrorResponse"
|
|
1598
1634
|
})),
|
|
1599
|
-
updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.
|
|
1635
|
+
updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1600
1636
|
"429": "RatelimitedResponse",
|
|
1601
1637
|
"4xx": "ErrorResponse"
|
|
1602
1638
|
})),
|
|
@@ -1604,7 +1640,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1604
1640
|
"429": "RatelimitedResponse",
|
|
1605
1641
|
"4xx": "ErrorResponse"
|
|
1606
1642
|
})),
|
|
1607
|
-
deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.
|
|
1643
|
+
deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], {
|
|
1608
1644
|
"429": "RatelimitedResponse",
|
|
1609
1645
|
"4xx": "ErrorResponse"
|
|
1610
1646
|
})),
|
|
@@ -1616,7 +1652,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1616
1652
|
"429": "RatelimitedResponse",
|
|
1617
1653
|
"4xx": "ErrorResponse"
|
|
1618
1654
|
})),
|
|
1619
|
-
deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.
|
|
1655
|
+
deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], {
|
|
1620
1656
|
"429": "RatelimitedResponse",
|
|
1621
1657
|
"4xx": "ErrorResponse"
|
|
1622
1658
|
})),
|
|
@@ -1624,23 +1660,23 @@ const make = (httpClient, options = {}) => {
|
|
|
1624
1660
|
"429": "RatelimitedResponse",
|
|
1625
1661
|
"4xx": "ErrorResponse"
|
|
1626
1662
|
})),
|
|
1627
|
-
deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.
|
|
1663
|
+
deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
|
|
1628
1664
|
"429": "RatelimitedResponse",
|
|
1629
1665
|
"4xx": "ErrorResponse"
|
|
1630
1666
|
})),
|
|
1631
|
-
deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.
|
|
1667
|
+
deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], {
|
|
1632
1668
|
"429": "RatelimitedResponse",
|
|
1633
1669
|
"4xx": "ErrorResponse"
|
|
1634
1670
|
})),
|
|
1635
|
-
createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.
|
|
1671
|
+
createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1636
1672
|
"429": "RatelimitedResponse",
|
|
1637
1673
|
"4xx": "ErrorResponse"
|
|
1638
1674
|
})),
|
|
1639
|
-
setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.
|
|
1675
|
+
setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1640
1676
|
"429": "RatelimitedResponse",
|
|
1641
1677
|
"4xx": "ErrorResponse"
|
|
1642
1678
|
})),
|
|
1643
|
-
deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.
|
|
1679
|
+
deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.delete(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], {
|
|
1644
1680
|
"429": "RatelimitedResponse",
|
|
1645
1681
|
"4xx": "ErrorResponse"
|
|
1646
1682
|
})),
|
|
@@ -1652,7 +1688,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1652
1688
|
"429": "RatelimitedResponse",
|
|
1653
1689
|
"4xx": "ErrorResponse"
|
|
1654
1690
|
})),
|
|
1655
|
-
deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.
|
|
1691
|
+
deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
|
|
1656
1692
|
"429": "RatelimitedResponse",
|
|
1657
1693
|
"4xx": "ErrorResponse"
|
|
1658
1694
|
})),
|
|
@@ -1667,15 +1703,15 @@ const make = (httpClient, options = {}) => {
|
|
|
1667
1703
|
"429": "RatelimitedResponse",
|
|
1668
1704
|
"4xx": "ErrorResponse"
|
|
1669
1705
|
})),
|
|
1670
|
-
addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.
|
|
1706
|
+
addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1671
1707
|
"429": "RatelimitedResponse",
|
|
1672
1708
|
"4xx": "ErrorResponse"
|
|
1673
1709
|
})),
|
|
1674
|
-
deleteGroupDmUser: (channelId, userId) => HttpClientRequest.
|
|
1710
|
+
deleteGroupDmUser: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], {
|
|
1675
1711
|
"429": "RatelimitedResponse",
|
|
1676
1712
|
"4xx": "ErrorResponse"
|
|
1677
1713
|
})),
|
|
1678
|
-
sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.
|
|
1714
|
+
sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1679
1715
|
"429": "RatelimitedResponse",
|
|
1680
1716
|
"4xx": "ErrorResponse"
|
|
1681
1717
|
})),
|
|
@@ -1691,7 +1727,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1691
1727
|
"429": "RatelimitedResponse",
|
|
1692
1728
|
"4xx": "ErrorResponse"
|
|
1693
1729
|
})),
|
|
1694
|
-
leaveThread: channelId => HttpClientRequest.
|
|
1730
|
+
leaveThread: channelId => HttpClientRequest.delete(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
|
|
1695
1731
|
"429": "RatelimitedResponse",
|
|
1696
1732
|
"4xx": "ErrorResponse"
|
|
1697
1733
|
})),
|
|
@@ -1705,11 +1741,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1705
1741
|
"429": "RatelimitedResponse",
|
|
1706
1742
|
"4xx": "ErrorResponse"
|
|
1707
1743
|
})),
|
|
1708
|
-
deleteThreadMember: (channelId, userId) => HttpClientRequest.
|
|
1744
|
+
deleteThreadMember: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
|
|
1709
1745
|
"429": "RatelimitedResponse",
|
|
1710
1746
|
"4xx": "ErrorResponse"
|
|
1711
1747
|
})),
|
|
1712
|
-
createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.
|
|
1748
|
+
createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1713
1749
|
"429": "RatelimitedResponse",
|
|
1714
1750
|
"4xx": "ErrorResponse"
|
|
1715
1751
|
})),
|
|
@@ -1758,7 +1794,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1758
1794
|
"429": "RatelimitedResponse",
|
|
1759
1795
|
"4xx": "ErrorResponse"
|
|
1760
1796
|
})),
|
|
1761
|
-
createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.
|
|
1797
|
+
createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1762
1798
|
"429": "RatelimitedResponse",
|
|
1763
1799
|
"4xx": "ErrorResponse"
|
|
1764
1800
|
})),
|
|
@@ -1780,7 +1816,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1780
1816
|
"429": "RatelimitedResponse",
|
|
1781
1817
|
"4xx": "ErrorResponse"
|
|
1782
1818
|
})),
|
|
1783
|
-
updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.
|
|
1819
|
+
updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1784
1820
|
"429": "RatelimitedResponse",
|
|
1785
1821
|
"4xx": "ErrorResponse"
|
|
1786
1822
|
})),
|
|
@@ -1799,7 +1835,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1799
1835
|
"429": "RatelimitedResponse",
|
|
1800
1836
|
"4xx": "ErrorResponse"
|
|
1801
1837
|
})),
|
|
1802
|
-
createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.
|
|
1838
|
+
createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1803
1839
|
"429": "RatelimitedResponse",
|
|
1804
1840
|
"4xx": "ErrorResponse"
|
|
1805
1841
|
})),
|
|
@@ -1807,11 +1843,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1807
1843
|
"429": "RatelimitedResponse",
|
|
1808
1844
|
"4xx": "ErrorResponse"
|
|
1809
1845
|
})),
|
|
1810
|
-
deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.
|
|
1846
|
+
deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.delete(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], {
|
|
1811
1847
|
"429": "RatelimitedResponse",
|
|
1812
1848
|
"4xx": "ErrorResponse"
|
|
1813
1849
|
})),
|
|
1814
|
-
updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.
|
|
1850
|
+
updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1815
1851
|
"429": "RatelimitedResponse",
|
|
1816
1852
|
"4xx": "ErrorResponse"
|
|
1817
1853
|
})),
|
|
@@ -1827,15 +1863,15 @@ const make = (httpClient, options = {}) => {
|
|
|
1827
1863
|
"429": "RatelimitedResponse",
|
|
1828
1864
|
"4xx": "ErrorResponse"
|
|
1829
1865
|
})),
|
|
1830
|
-
banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.
|
|
1866
|
+
banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1831
1867
|
"429": "RatelimitedResponse",
|
|
1832
1868
|
"4xx": "ErrorResponse"
|
|
1833
1869
|
})),
|
|
1834
|
-
unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.
|
|
1870
|
+
unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1835
1871
|
"429": "RatelimitedResponse",
|
|
1836
1872
|
"4xx": "ErrorResponse"
|
|
1837
1873
|
})),
|
|
1838
|
-
bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.
|
|
1874
|
+
bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1839
1875
|
"429": "RatelimitedResponse",
|
|
1840
1876
|
"4xx": "ErrorResponse"
|
|
1841
1877
|
})),
|
|
@@ -1843,11 +1879,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1843
1879
|
"429": "RatelimitedResponse",
|
|
1844
1880
|
"4xx": "ErrorResponse"
|
|
1845
1881
|
})),
|
|
1846
|
-
createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.
|
|
1882
|
+
createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1847
1883
|
"429": "RatelimitedResponse",
|
|
1848
1884
|
"4xx": "ErrorResponse"
|
|
1849
1885
|
})),
|
|
1850
|
-
bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.
|
|
1886
|
+
bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1851
1887
|
"429": "RatelimitedResponse",
|
|
1852
1888
|
"4xx": "ErrorResponse"
|
|
1853
1889
|
})),
|
|
@@ -1855,7 +1891,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1855
1891
|
"429": "RatelimitedResponse",
|
|
1856
1892
|
"4xx": "ErrorResponse"
|
|
1857
1893
|
})),
|
|
1858
|
-
createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.
|
|
1894
|
+
createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1859
1895
|
"429": "RatelimitedResponse",
|
|
1860
1896
|
"4xx": "ErrorResponse"
|
|
1861
1897
|
})),
|
|
@@ -1863,11 +1899,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1863
1899
|
"429": "RatelimitedResponse",
|
|
1864
1900
|
"4xx": "ErrorResponse"
|
|
1865
1901
|
})),
|
|
1866
|
-
deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.
|
|
1902
|
+
deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1867
1903
|
"429": "RatelimitedResponse",
|
|
1868
1904
|
"4xx": "ErrorResponse"
|
|
1869
1905
|
})),
|
|
1870
|
-
updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.
|
|
1906
|
+
updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1871
1907
|
"429": "RatelimitedResponse",
|
|
1872
1908
|
"4xx": "ErrorResponse"
|
|
1873
1909
|
})),
|
|
@@ -1875,7 +1911,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1875
1911
|
"429": "RatelimitedResponse",
|
|
1876
1912
|
"4xx": "ErrorResponse"
|
|
1877
1913
|
})),
|
|
1878
|
-
deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.
|
|
1914
|
+
deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.delete(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], {
|
|
1879
1915
|
"429": "RatelimitedResponse",
|
|
1880
1916
|
"4xx": "ErrorResponse"
|
|
1881
1917
|
})),
|
|
@@ -1890,7 +1926,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1890
1926
|
"429": "RatelimitedResponse",
|
|
1891
1927
|
"4xx": "ErrorResponse"
|
|
1892
1928
|
})),
|
|
1893
|
-
updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.
|
|
1929
|
+
updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1894
1930
|
"429": "RatelimitedResponse",
|
|
1895
1931
|
"4xx": "ErrorResponse"
|
|
1896
1932
|
})),
|
|
@@ -1905,15 +1941,15 @@ const make = (httpClient, options = {}) => {
|
|
|
1905
1941
|
"429": "RatelimitedResponse",
|
|
1906
1942
|
"4xx": "ErrorResponse"
|
|
1907
1943
|
})),
|
|
1908
|
-
addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.
|
|
1944
|
+
addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1909
1945
|
"429": "RatelimitedResponse",
|
|
1910
1946
|
"4xx": "ErrorResponse"
|
|
1911
1947
|
})),
|
|
1912
|
-
deleteGuildMember: (guildId, userId) => HttpClientRequest.
|
|
1948
|
+
deleteGuildMember: (guildId, userId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], {
|
|
1913
1949
|
"429": "RatelimitedResponse",
|
|
1914
1950
|
"4xx": "ErrorResponse"
|
|
1915
1951
|
})),
|
|
1916
|
-
updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.
|
|
1952
|
+
updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1917
1953
|
"429": "RatelimitedResponse",
|
|
1918
1954
|
"4xx": "ErrorResponse"
|
|
1919
1955
|
})),
|
|
@@ -1921,7 +1957,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1921
1957
|
"429": "RatelimitedResponse",
|
|
1922
1958
|
"4xx": "ErrorResponse"
|
|
1923
1959
|
})),
|
|
1924
|
-
deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.
|
|
1960
|
+
deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1925
1961
|
"429": "RatelimitedResponse",
|
|
1926
1962
|
"4xx": "ErrorResponse"
|
|
1927
1963
|
})),
|
|
@@ -1933,7 +1969,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1933
1969
|
"429": "RatelimitedResponse",
|
|
1934
1970
|
"4xx": "ErrorResponse"
|
|
1935
1971
|
})),
|
|
1936
|
-
putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.
|
|
1972
|
+
putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1937
1973
|
"429": "RatelimitedResponse",
|
|
1938
1974
|
"4xx": "ErrorResponse"
|
|
1939
1975
|
})),
|
|
@@ -1948,7 +1984,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1948
1984
|
"429": "RatelimitedResponse",
|
|
1949
1985
|
"4xx": "ErrorResponse"
|
|
1950
1986
|
})),
|
|
1951
|
-
pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.
|
|
1987
|
+
pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1952
1988
|
"429": "RatelimitedResponse",
|
|
1953
1989
|
"4xx": "ErrorResponse"
|
|
1954
1990
|
})),
|
|
@@ -1960,11 +1996,15 @@ const make = (httpClient, options = {}) => {
|
|
|
1960
1996
|
"429": "RatelimitedResponse",
|
|
1961
1997
|
"4xx": "ErrorResponse"
|
|
1962
1998
|
})),
|
|
1963
|
-
createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.
|
|
1999
|
+
createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2000
|
+
"429": "RatelimitedResponse",
|
|
2001
|
+
"4xx": "ErrorResponse"
|
|
2002
|
+
})),
|
|
2003
|
+
bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1964
2004
|
"429": "RatelimitedResponse",
|
|
1965
2005
|
"4xx": "ErrorResponse"
|
|
1966
2006
|
})),
|
|
1967
|
-
|
|
2007
|
+
guildRoleMemberCounts: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(onRequest(["2xx"], {
|
|
1968
2008
|
"429": "RatelimitedResponse",
|
|
1969
2009
|
"4xx": "ErrorResponse"
|
|
1970
2010
|
})),
|
|
@@ -1972,11 +2012,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1972
2012
|
"429": "RatelimitedResponse",
|
|
1973
2013
|
"4xx": "ErrorResponse"
|
|
1974
2014
|
})),
|
|
1975
|
-
deleteGuildRole: (guildId, roleId) => HttpClientRequest.
|
|
2015
|
+
deleteGuildRole: (guildId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1976
2016
|
"429": "RatelimitedResponse",
|
|
1977
2017
|
"4xx": "ErrorResponse"
|
|
1978
2018
|
})),
|
|
1979
|
-
updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.
|
|
2019
|
+
updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1980
2020
|
"429": "RatelimitedResponse",
|
|
1981
2021
|
"4xx": "ErrorResponse"
|
|
1982
2022
|
})),
|
|
@@ -1986,7 +2026,7 @@ const make = (httpClient, options = {}) => {
|
|
|
1986
2026
|
"429": "RatelimitedResponse",
|
|
1987
2027
|
"4xx": "ErrorResponse"
|
|
1988
2028
|
})),
|
|
1989
|
-
createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.
|
|
2029
|
+
createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1990
2030
|
"429": "RatelimitedResponse",
|
|
1991
2031
|
"4xx": "ErrorResponse"
|
|
1992
2032
|
})),
|
|
@@ -1996,11 +2036,11 @@ const make = (httpClient, options = {}) => {
|
|
|
1996
2036
|
"429": "RatelimitedResponse",
|
|
1997
2037
|
"4xx": "ErrorResponse"
|
|
1998
2038
|
})),
|
|
1999
|
-
deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.
|
|
2039
|
+
deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], {
|
|
2000
2040
|
"429": "RatelimitedResponse",
|
|
2001
2041
|
"4xx": "ErrorResponse"
|
|
2002
2042
|
})),
|
|
2003
|
-
updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.
|
|
2043
|
+
updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2004
2044
|
"429": "RatelimitedResponse",
|
|
2005
2045
|
"4xx": "ErrorResponse"
|
|
2006
2046
|
})),
|
|
@@ -2017,7 +2057,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2017
2057
|
"429": "RatelimitedResponse",
|
|
2018
2058
|
"4xx": "ErrorResponse"
|
|
2019
2059
|
})),
|
|
2020
|
-
createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.
|
|
2060
|
+
createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2021
2061
|
"429": "RatelimitedResponse",
|
|
2022
2062
|
"4xx": "ErrorResponse"
|
|
2023
2063
|
})),
|
|
@@ -2025,11 +2065,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2025
2065
|
"429": "RatelimitedResponse",
|
|
2026
2066
|
"4xx": "ErrorResponse"
|
|
2027
2067
|
})),
|
|
2028
|
-
deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.
|
|
2068
|
+
deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.delete(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], {
|
|
2029
2069
|
"429": "RatelimitedResponse",
|
|
2030
2070
|
"4xx": "ErrorResponse"
|
|
2031
2071
|
})),
|
|
2032
|
-
updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.
|
|
2072
|
+
updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2033
2073
|
"429": "RatelimitedResponse",
|
|
2034
2074
|
"4xx": "ErrorResponse"
|
|
2035
2075
|
})),
|
|
@@ -2045,11 +2085,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2045
2085
|
"429": "RatelimitedResponse",
|
|
2046
2086
|
"4xx": "ErrorResponse"
|
|
2047
2087
|
})),
|
|
2048
|
-
deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.
|
|
2088
|
+
deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], {
|
|
2049
2089
|
"429": "RatelimitedResponse",
|
|
2050
2090
|
"4xx": "ErrorResponse"
|
|
2051
2091
|
})),
|
|
2052
|
-
updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.
|
|
2092
|
+
updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2053
2093
|
"429": "RatelimitedResponse",
|
|
2054
2094
|
"4xx": "ErrorResponse"
|
|
2055
2095
|
})),
|
|
@@ -2057,7 +2097,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2057
2097
|
"429": "RatelimitedResponse",
|
|
2058
2098
|
"4xx": "ErrorResponse"
|
|
2059
2099
|
})),
|
|
2060
|
-
createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.
|
|
2100
|
+
createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2061
2101
|
"429": "RatelimitedResponse",
|
|
2062
2102
|
"4xx": "ErrorResponse"
|
|
2063
2103
|
})),
|
|
@@ -2065,11 +2105,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2065
2105
|
"429": "RatelimitedResponse",
|
|
2066
2106
|
"4xx": "ErrorResponse"
|
|
2067
2107
|
})),
|
|
2068
|
-
deleteGuildTemplate: (guildId, code) => HttpClientRequest.
|
|
2108
|
+
deleteGuildTemplate: (guildId, code) => HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
|
|
2069
2109
|
"429": "RatelimitedResponse",
|
|
2070
2110
|
"4xx": "ErrorResponse"
|
|
2071
2111
|
})),
|
|
2072
|
-
updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.
|
|
2112
|
+
updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2073
2113
|
"429": "RatelimitedResponse",
|
|
2074
2114
|
"4xx": "ErrorResponse"
|
|
2075
2115
|
})),
|
|
@@ -2085,7 +2125,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2085
2125
|
"429": "RatelimitedResponse",
|
|
2086
2126
|
"4xx": "ErrorResponse"
|
|
2087
2127
|
})),
|
|
2088
|
-
updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.
|
|
2128
|
+
updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2089
2129
|
"429": "RatelimitedResponse",
|
|
2090
2130
|
"4xx": "ErrorResponse"
|
|
2091
2131
|
})),
|
|
@@ -2093,7 +2133,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2093
2133
|
"429": "RatelimitedResponse",
|
|
2094
2134
|
"4xx": "ErrorResponse"
|
|
2095
2135
|
})),
|
|
2096
|
-
updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.
|
|
2136
|
+
updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2097
2137
|
"429": "RatelimitedResponse",
|
|
2098
2138
|
"4xx": "ErrorResponse"
|
|
2099
2139
|
})),
|
|
@@ -2105,7 +2145,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2105
2145
|
"429": "RatelimitedResponse",
|
|
2106
2146
|
"4xx": "ErrorResponse"
|
|
2107
2147
|
})),
|
|
2108
|
-
updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.
|
|
2148
|
+
updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2109
2149
|
"429": "RatelimitedResponse",
|
|
2110
2150
|
"4xx": "ErrorResponse"
|
|
2111
2151
|
})),
|
|
@@ -2113,7 +2153,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2113
2153
|
"429": "RatelimitedResponse",
|
|
2114
2154
|
"4xx": "ErrorResponse"
|
|
2115
2155
|
})),
|
|
2116
|
-
updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.
|
|
2156
|
+
updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2117
2157
|
"429": "RatelimitedResponse",
|
|
2118
2158
|
"4xx": "ErrorResponse"
|
|
2119
2159
|
})),
|
|
@@ -2129,7 +2169,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2129
2169
|
})),
|
|
2130
2170
|
createInteractionResponse: (interactionId, interactionToken, options) => HttpClientRequest.post(`/interactions/${interactionId}/${interactionToken}/callback`).pipe(HttpClientRequest.setUrlParams({
|
|
2131
2171
|
with_response: options.params?.["with_response"]
|
|
2132
|
-
}), HttpClientRequest.
|
|
2172
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2133
2173
|
"429": "RatelimitedResponse",
|
|
2134
2174
|
"4xx": "ErrorResponse"
|
|
2135
2175
|
})),
|
|
@@ -2140,15 +2180,27 @@ const make = (httpClient, options = {}) => {
|
|
|
2140
2180
|
"429": "RatelimitedResponse",
|
|
2141
2181
|
"4xx": "ErrorResponse"
|
|
2142
2182
|
})),
|
|
2143
|
-
inviteRevoke: code => HttpClientRequest.
|
|
2183
|
+
inviteRevoke: code => HttpClientRequest.delete(`/invites/${code}`).pipe(onRequest(["2xx"], {
|
|
2144
2184
|
"429": "RatelimitedResponse",
|
|
2145
2185
|
"4xx": "ErrorResponse"
|
|
2146
2186
|
})),
|
|
2147
|
-
|
|
2187
|
+
getInviteTargetUsers: code => HttpClientRequest.get(`/invites/${code}/target-users`).pipe(onRequest([], {
|
|
2148
2188
|
"429": "RatelimitedResponse",
|
|
2149
2189
|
"4xx": "ErrorResponse"
|
|
2150
2190
|
})),
|
|
2151
|
-
|
|
2191
|
+
updateInviteTargetUsers: (code, options) => HttpClientRequest.put(`/invites/${code}/target-users`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest([], {
|
|
2192
|
+
"429": "RatelimitedResponse",
|
|
2193
|
+
"4xx": "ErrorResponse"
|
|
2194
|
+
})),
|
|
2195
|
+
getInviteTargetUsersJobStatus: code => HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(onRequest(["2xx"], {
|
|
2196
|
+
"429": "RatelimitedResponse",
|
|
2197
|
+
"4xx": "ErrorResponse"
|
|
2198
|
+
})),
|
|
2199
|
+
createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2200
|
+
"429": "RatelimitedResponse",
|
|
2201
|
+
"4xx": "ErrorResponse"
|
|
2202
|
+
})),
|
|
2203
|
+
createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2152
2204
|
"429": "RatelimitedResponse",
|
|
2153
2205
|
"4xx": "ErrorResponse"
|
|
2154
2206
|
})),
|
|
@@ -2156,15 +2208,15 @@ const make = (httpClient, options = {}) => {
|
|
|
2156
2208
|
"429": "RatelimitedResponse",
|
|
2157
2209
|
"4xx": "ErrorResponse"
|
|
2158
2210
|
})),
|
|
2159
|
-
editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.
|
|
2211
|
+
editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2160
2212
|
"429": "RatelimitedResponse",
|
|
2161
2213
|
"4xx": "ErrorResponse"
|
|
2162
2214
|
})),
|
|
2163
|
-
editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.
|
|
2215
|
+
editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2164
2216
|
"429": "RatelimitedResponse",
|
|
2165
2217
|
"4xx": "ErrorResponse"
|
|
2166
2218
|
})),
|
|
2167
|
-
leaveLobby: lobbyId => HttpClientRequest.
|
|
2219
|
+
leaveLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], {
|
|
2168
2220
|
"429": "RatelimitedResponse",
|
|
2169
2221
|
"4xx": "ErrorResponse"
|
|
2170
2222
|
})),
|
|
@@ -2172,15 +2224,15 @@ const make = (httpClient, options = {}) => {
|
|
|
2172
2224
|
"429": "RatelimitedResponse",
|
|
2173
2225
|
"4xx": "ErrorResponse"
|
|
2174
2226
|
})),
|
|
2175
|
-
bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.
|
|
2227
|
+
bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2176
2228
|
"429": "RatelimitedResponse",
|
|
2177
2229
|
"4xx": "ErrorResponse"
|
|
2178
2230
|
})),
|
|
2179
|
-
addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.
|
|
2231
|
+
addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2180
2232
|
"429": "RatelimitedResponse",
|
|
2181
2233
|
"4xx": "ErrorResponse"
|
|
2182
2234
|
})),
|
|
2183
|
-
deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.
|
|
2235
|
+
deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], {
|
|
2184
2236
|
"429": "RatelimitedResponse",
|
|
2185
2237
|
"4xx": "ErrorResponse"
|
|
2186
2238
|
})),
|
|
@@ -2194,7 +2246,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2194
2246
|
"429": "RatelimitedResponse",
|
|
2195
2247
|
"4xx": "ErrorResponse"
|
|
2196
2248
|
})),
|
|
2197
|
-
createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.
|
|
2249
|
+
createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2250
|
+
"429": "RatelimitedResponse",
|
|
2251
|
+
"4xx": "ErrorResponse"
|
|
2252
|
+
})),
|
|
2253
|
+
updateLobbyMessageExternalModerationMetadata: (lobbyId, messageId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2198
2254
|
"429": "RatelimitedResponse",
|
|
2199
2255
|
"4xx": "ErrorResponse"
|
|
2200
2256
|
})),
|
|
@@ -2214,19 +2270,23 @@ const make = (httpClient, options = {}) => {
|
|
|
2214
2270
|
"429": "RatelimitedResponse",
|
|
2215
2271
|
"4xx": "ErrorResponse"
|
|
2216
2272
|
})),
|
|
2217
|
-
|
|
2273
|
+
updateUserMessageExternalModerationMetadata: (userId1, userId2, messageId, options) => HttpClientRequest.put(`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2274
|
+
"429": "RatelimitedResponse",
|
|
2275
|
+
"4xx": "ErrorResponse"
|
|
2276
|
+
})),
|
|
2277
|
+
partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2218
2278
|
"429": "RatelimitedResponse",
|
|
2219
2279
|
"4xx": "ErrorResponse"
|
|
2220
2280
|
})),
|
|
2221
|
-
botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.
|
|
2281
|
+
botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2222
2282
|
"429": "RatelimitedResponse",
|
|
2223
2283
|
"4xx": "ErrorResponse"
|
|
2224
2284
|
})),
|
|
2225
|
-
partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.
|
|
2285
|
+
partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2226
2286
|
"429": "RatelimitedResponse",
|
|
2227
2287
|
"4xx": "ErrorResponse"
|
|
2228
2288
|
})),
|
|
2229
|
-
botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.
|
|
2289
|
+
botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2230
2290
|
"429": "RatelimitedResponse",
|
|
2231
2291
|
"4xx": "ErrorResponse"
|
|
2232
2292
|
})),
|
|
@@ -2234,7 +2294,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2234
2294
|
"429": "RatelimitedResponse",
|
|
2235
2295
|
"4xx": "ErrorResponse"
|
|
2236
2296
|
})),
|
|
2237
|
-
createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.
|
|
2297
|
+
createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2238
2298
|
"429": "RatelimitedResponse",
|
|
2239
2299
|
"4xx": "ErrorResponse"
|
|
2240
2300
|
})),
|
|
@@ -2242,11 +2302,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2242
2302
|
"429": "RatelimitedResponse",
|
|
2243
2303
|
"4xx": "ErrorResponse"
|
|
2244
2304
|
})),
|
|
2245
|
-
deleteStageInstance: channelId => HttpClientRequest.
|
|
2305
|
+
deleteStageInstance: channelId => HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(onRequest([], {
|
|
2246
2306
|
"429": "RatelimitedResponse",
|
|
2247
2307
|
"4xx": "ErrorResponse"
|
|
2248
2308
|
})),
|
|
2249
|
-
updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.
|
|
2309
|
+
updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2250
2310
|
"429": "RatelimitedResponse",
|
|
2251
2311
|
"4xx": "ErrorResponse"
|
|
2252
2312
|
})),
|
|
@@ -2266,7 +2326,14 @@ const make = (httpClient, options = {}) => {
|
|
|
2266
2326
|
"429": "RatelimitedResponse",
|
|
2267
2327
|
"4xx": "ErrorResponse"
|
|
2268
2328
|
})),
|
|
2269
|
-
updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.
|
|
2329
|
+
updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2330
|
+
"429": "RatelimitedResponse",
|
|
2331
|
+
"4xx": "ErrorResponse"
|
|
2332
|
+
})),
|
|
2333
|
+
getCurrentUserApplicationEntitlements: (applicationId, options) => HttpClientRequest.get(`/users/@me/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
|
|
2334
|
+
sku_ids: options?.["sku_ids"],
|
|
2335
|
+
exclude_consumed: options?.["exclude_consumed"]
|
|
2336
|
+
}), onRequest(["2xx"], {
|
|
2270
2337
|
"429": "RatelimitedResponse",
|
|
2271
2338
|
"4xx": "ErrorResponse"
|
|
2272
2339
|
})),
|
|
@@ -2274,15 +2341,15 @@ const make = (httpClient, options = {}) => {
|
|
|
2274
2341
|
"429": "RatelimitedResponse",
|
|
2275
2342
|
"4xx": "ErrorResponse"
|
|
2276
2343
|
})),
|
|
2277
|
-
updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.
|
|
2344
|
+
updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2278
2345
|
"429": "RatelimitedResponse",
|
|
2279
2346
|
"4xx": "ErrorResponse"
|
|
2280
2347
|
})),
|
|
2281
|
-
deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.
|
|
2348
|
+
deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.delete(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], {
|
|
2282
2349
|
"429": "RatelimitedResponse",
|
|
2283
2350
|
"4xx": "ErrorResponse"
|
|
2284
2351
|
})),
|
|
2285
|
-
createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.
|
|
2352
|
+
createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2286
2353
|
"429": "RatelimitedResponse",
|
|
2287
2354
|
"4xx": "ErrorResponse"
|
|
2288
2355
|
})),
|
|
@@ -2299,7 +2366,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2299
2366
|
"429": "RatelimitedResponse",
|
|
2300
2367
|
"4xx": "ErrorResponse"
|
|
2301
2368
|
})),
|
|
2302
|
-
leaveGuild: guildId => HttpClientRequest.
|
|
2369
|
+
leaveGuild: guildId => HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(onRequest([], {
|
|
2303
2370
|
"429": "RatelimitedResponse",
|
|
2304
2371
|
"4xx": "ErrorResponse"
|
|
2305
2372
|
})),
|
|
@@ -2319,11 +2386,11 @@ const make = (httpClient, options = {}) => {
|
|
|
2319
2386
|
"429": "RatelimitedResponse",
|
|
2320
2387
|
"4xx": "ErrorResponse"
|
|
2321
2388
|
})),
|
|
2322
|
-
deleteWebhook: webhookId => HttpClientRequest.
|
|
2389
|
+
deleteWebhook: webhookId => HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(onRequest([], {
|
|
2323
2390
|
"429": "RatelimitedResponse",
|
|
2324
2391
|
"4xx": "ErrorResponse"
|
|
2325
2392
|
})),
|
|
2326
|
-
updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.
|
|
2393
|
+
updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2327
2394
|
"429": "RatelimitedResponse",
|
|
2328
2395
|
"4xx": "ErrorResponse"
|
|
2329
2396
|
})),
|
|
@@ -2335,22 +2402,22 @@ const make = (httpClient, options = {}) => {
|
|
|
2335
2402
|
wait: options.params?.["wait"],
|
|
2336
2403
|
thread_id: options.params?.["thread_id"],
|
|
2337
2404
|
with_components: options.params?.["with_components"]
|
|
2338
|
-
}), HttpClientRequest.
|
|
2405
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2339
2406
|
"429": "RatelimitedResponse",
|
|
2340
2407
|
"4xx": "ErrorResponse"
|
|
2341
2408
|
})),
|
|
2342
|
-
deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.
|
|
2409
|
+
deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], {
|
|
2343
2410
|
"429": "RatelimitedResponse",
|
|
2344
2411
|
"4xx": "ErrorResponse"
|
|
2345
2412
|
})),
|
|
2346
|
-
updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.
|
|
2413
|
+
updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2347
2414
|
"429": "RatelimitedResponse",
|
|
2348
2415
|
"4xx": "ErrorResponse"
|
|
2349
2416
|
})),
|
|
2350
2417
|
executeGithubCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/github`).pipe(HttpClientRequest.setUrlParams({
|
|
2351
2418
|
wait: options.params?.["wait"],
|
|
2352
2419
|
thread_id: options.params?.["thread_id"]
|
|
2353
|
-
}), HttpClientRequest.
|
|
2420
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest([], {
|
|
2354
2421
|
"429": "RatelimitedResponse",
|
|
2355
2422
|
"4xx": "ErrorResponse"
|
|
2356
2423
|
})),
|
|
@@ -2360,7 +2427,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2360
2427
|
"429": "RatelimitedResponse",
|
|
2361
2428
|
"4xx": "ErrorResponse"
|
|
2362
2429
|
})),
|
|
2363
|
-
deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.
|
|
2430
|
+
deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2364
2431
|
thread_id: options?.["thread_id"]
|
|
2365
2432
|
}), onRequest([], {
|
|
2366
2433
|
"429": "RatelimitedResponse",
|
|
@@ -2369,7 +2436,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2369
2436
|
updateOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2370
2437
|
thread_id: options.params?.["thread_id"],
|
|
2371
2438
|
with_components: options.params?.["with_components"]
|
|
2372
|
-
}), HttpClientRequest.
|
|
2439
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2373
2440
|
"429": "RatelimitedResponse",
|
|
2374
2441
|
"4xx": "ErrorResponse"
|
|
2375
2442
|
})),
|
|
@@ -2379,7 +2446,7 @@ const make = (httpClient, options = {}) => {
|
|
|
2379
2446
|
"429": "RatelimitedResponse",
|
|
2380
2447
|
"4xx": "ErrorResponse"
|
|
2381
2448
|
})),
|
|
2382
|
-
deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.
|
|
2449
|
+
deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2383
2450
|
thread_id: options?.["thread_id"]
|
|
2384
2451
|
}), onRequest([], {
|
|
2385
2452
|
"429": "RatelimitedResponse",
|
|
@@ -2388,14 +2455,14 @@ const make = (httpClient, options = {}) => {
|
|
|
2388
2455
|
updateWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2389
2456
|
thread_id: options.params?.["thread_id"],
|
|
2390
2457
|
with_components: options.params?.["with_components"]
|
|
2391
|
-
}), HttpClientRequest.
|
|
2458
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2392
2459
|
"429": "RatelimitedResponse",
|
|
2393
2460
|
"4xx": "ErrorResponse"
|
|
2394
2461
|
})),
|
|
2395
2462
|
executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/slack`).pipe(HttpClientRequest.setUrlParams({
|
|
2396
2463
|
wait: options.params?.["wait"],
|
|
2397
2464
|
thread_id: options.params?.["thread_id"]
|
|
2398
|
-
}), HttpClientRequest.
|
|
2465
|
+
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2399
2466
|
"429": "RatelimitedResponse",
|
|
2400
2467
|
"4xx": "ErrorResponse"
|
|
2401
2468
|
}))
|