From df41a149c7367b501b72d90f42b7f7d0bbceac37 Mon Sep 17 00:00:00 2001 From: Shadow Date: Tue, 3 Sep 2024 18:09:10 -0500 Subject: [PATCH] fix: use Request instead of IRequestStrict for Client#handle --- .../.wrangler/tmp/deploy-PFMdGv/index.js | 6667 +++++++++++++++++ .../.wrangler/tmp/deploy-PFMdGv/index.js.map | 8 + packages/carbon/CHANGELOG.md | 6 + packages/carbon/package.json | 2 +- packages/carbon/src/classes/Client.ts | 4 +- packages/linked-roles/CHANGELOG.md | 7 + packages/linked-roles/package.json | 2 +- packages/nodejs/CHANGELOG.md | 7 + packages/nodejs/package.json | 2 +- 9 files changed, 6700 insertions(+), 5 deletions(-) create mode 100644 apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js create mode 100644 apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js.map diff --git a/apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js b/apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js new file mode 100644 index 00000000..10d97438 --- /dev/null +++ b/apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js @@ -0,0 +1,6667 @@ +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod2) => function __require() { + return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports; +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target, + mod2 +)); + +// ../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/gateway/common.js +var require_common = __commonJS({ + "../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/gateway/common.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + } +}); + +// ../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/gateway/v10.js +var require_v10 = __commonJS({ + "../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/gateway/v10.js"(exports) { + "use strict"; + var __createBinding = exports && exports.__createBinding || (Object.create ? function(o2, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o2, k2, desc); + } : function(o2, m, k, k2) { + if (k2 === void 0) + k2 = k; + o2[k2] = m[k]; + }); + var __exportStar = exports && exports.__exportStar || function(m, exports2) { + for (var p2 in m) + if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2)) + __createBinding(exports2, m, p2); + }; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.GatewayDispatchEvents = exports.GatewayIntentBits = exports.GatewayCloseCodes = exports.GatewayOpcodes = exports.GatewayVersion = void 0; + __exportStar(require_common(), exports); + exports.GatewayVersion = "10"; + var GatewayOpcodes2; + (function(GatewayOpcodes3) { + GatewayOpcodes3[GatewayOpcodes3["Dispatch"] = 0] = "Dispatch"; + GatewayOpcodes3[GatewayOpcodes3["Heartbeat"] = 1] = "Heartbeat"; + GatewayOpcodes3[GatewayOpcodes3["Identify"] = 2] = "Identify"; + GatewayOpcodes3[GatewayOpcodes3["PresenceUpdate"] = 3] = "PresenceUpdate"; + GatewayOpcodes3[GatewayOpcodes3["VoiceStateUpdate"] = 4] = "VoiceStateUpdate"; + GatewayOpcodes3[GatewayOpcodes3["Resume"] = 6] = "Resume"; + GatewayOpcodes3[GatewayOpcodes3["Reconnect"] = 7] = "Reconnect"; + GatewayOpcodes3[GatewayOpcodes3["RequestGuildMembers"] = 8] = "RequestGuildMembers"; + GatewayOpcodes3[GatewayOpcodes3["InvalidSession"] = 9] = "InvalidSession"; + GatewayOpcodes3[GatewayOpcodes3["Hello"] = 10] = "Hello"; + GatewayOpcodes3[GatewayOpcodes3["HeartbeatAck"] = 11] = "HeartbeatAck"; + })(GatewayOpcodes2 || (exports.GatewayOpcodes = GatewayOpcodes2 = {})); + var GatewayCloseCodes2; + (function(GatewayCloseCodes3) { + GatewayCloseCodes3[GatewayCloseCodes3["UnknownError"] = 4e3] = "UnknownError"; + GatewayCloseCodes3[GatewayCloseCodes3["UnknownOpcode"] = 4001] = "UnknownOpcode"; + GatewayCloseCodes3[GatewayCloseCodes3["DecodeError"] = 4002] = "DecodeError"; + GatewayCloseCodes3[GatewayCloseCodes3["NotAuthenticated"] = 4003] = "NotAuthenticated"; + GatewayCloseCodes3[GatewayCloseCodes3["AuthenticationFailed"] = 4004] = "AuthenticationFailed"; + GatewayCloseCodes3[GatewayCloseCodes3["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated"; + GatewayCloseCodes3[GatewayCloseCodes3["InvalidSeq"] = 4007] = "InvalidSeq"; + GatewayCloseCodes3[GatewayCloseCodes3["RateLimited"] = 4008] = "RateLimited"; + GatewayCloseCodes3[GatewayCloseCodes3["SessionTimedOut"] = 4009] = "SessionTimedOut"; + GatewayCloseCodes3[GatewayCloseCodes3["InvalidShard"] = 4010] = "InvalidShard"; + GatewayCloseCodes3[GatewayCloseCodes3["ShardingRequired"] = 4011] = "ShardingRequired"; + GatewayCloseCodes3[GatewayCloseCodes3["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion"; + GatewayCloseCodes3[GatewayCloseCodes3["InvalidIntents"] = 4013] = "InvalidIntents"; + GatewayCloseCodes3[GatewayCloseCodes3["DisallowedIntents"] = 4014] = "DisallowedIntents"; + })(GatewayCloseCodes2 || (exports.GatewayCloseCodes = GatewayCloseCodes2 = {})); + var GatewayIntentBits2; + (function(GatewayIntentBits3) { + GatewayIntentBits3[GatewayIntentBits3["Guilds"] = 1] = "Guilds"; + GatewayIntentBits3[GatewayIntentBits3["GuildMembers"] = 2] = "GuildMembers"; + GatewayIntentBits3[GatewayIntentBits3["GuildModeration"] = 4] = "GuildModeration"; + GatewayIntentBits3[GatewayIntentBits3["GuildBans"] = 4] = "GuildBans"; + GatewayIntentBits3[GatewayIntentBits3["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers"; + GatewayIntentBits3[GatewayIntentBits3["GuildIntegrations"] = 16] = "GuildIntegrations"; + GatewayIntentBits3[GatewayIntentBits3["GuildWebhooks"] = 32] = "GuildWebhooks"; + GatewayIntentBits3[GatewayIntentBits3["GuildInvites"] = 64] = "GuildInvites"; + GatewayIntentBits3[GatewayIntentBits3["GuildVoiceStates"] = 128] = "GuildVoiceStates"; + GatewayIntentBits3[GatewayIntentBits3["GuildPresences"] = 256] = "GuildPresences"; + GatewayIntentBits3[GatewayIntentBits3["GuildMessages"] = 512] = "GuildMessages"; + GatewayIntentBits3[GatewayIntentBits3["GuildMessageReactions"] = 1024] = "GuildMessageReactions"; + GatewayIntentBits3[GatewayIntentBits3["GuildMessageTyping"] = 2048] = "GuildMessageTyping"; + GatewayIntentBits3[GatewayIntentBits3["DirectMessages"] = 4096] = "DirectMessages"; + GatewayIntentBits3[GatewayIntentBits3["DirectMessageReactions"] = 8192] = "DirectMessageReactions"; + GatewayIntentBits3[GatewayIntentBits3["DirectMessageTyping"] = 16384] = "DirectMessageTyping"; + GatewayIntentBits3[GatewayIntentBits3["MessageContent"] = 32768] = "MessageContent"; + GatewayIntentBits3[GatewayIntentBits3["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents"; + GatewayIntentBits3[GatewayIntentBits3["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration"; + GatewayIntentBits3[GatewayIntentBits3["AutoModerationExecution"] = 2097152] = "AutoModerationExecution"; + GatewayIntentBits3[GatewayIntentBits3["GuildMessagePolls"] = 16777216] = "GuildMessagePolls"; + GatewayIntentBits3[GatewayIntentBits3["DirectMessagePolls"] = 33554432] = "DirectMessagePolls"; + })(GatewayIntentBits2 || (exports.GatewayIntentBits = GatewayIntentBits2 = {})); + var GatewayDispatchEvents2; + (function(GatewayDispatchEvents3) { + GatewayDispatchEvents3["ApplicationCommandPermissionsUpdate"] = "APPLICATION_COMMAND_PERMISSIONS_UPDATE"; + GatewayDispatchEvents3["ChannelCreate"] = "CHANNEL_CREATE"; + GatewayDispatchEvents3["ChannelDelete"] = "CHANNEL_DELETE"; + GatewayDispatchEvents3["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE"; + GatewayDispatchEvents3["ChannelUpdate"] = "CHANNEL_UPDATE"; + GatewayDispatchEvents3["GuildBanAdd"] = "GUILD_BAN_ADD"; + GatewayDispatchEvents3["GuildBanRemove"] = "GUILD_BAN_REMOVE"; + GatewayDispatchEvents3["GuildCreate"] = "GUILD_CREATE"; + GatewayDispatchEvents3["GuildDelete"] = "GUILD_DELETE"; + GatewayDispatchEvents3["GuildEmojisUpdate"] = "GUILD_EMOJIS_UPDATE"; + GatewayDispatchEvents3["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE"; + GatewayDispatchEvents3["GuildMemberAdd"] = "GUILD_MEMBER_ADD"; + GatewayDispatchEvents3["GuildMemberRemove"] = "GUILD_MEMBER_REMOVE"; + GatewayDispatchEvents3["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK"; + GatewayDispatchEvents3["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE"; + GatewayDispatchEvents3["GuildRoleCreate"] = "GUILD_ROLE_CREATE"; + GatewayDispatchEvents3["GuildRoleDelete"] = "GUILD_ROLE_DELETE"; + GatewayDispatchEvents3["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE"; + GatewayDispatchEvents3["GuildStickersUpdate"] = "GUILD_STICKERS_UPDATE"; + GatewayDispatchEvents3["GuildUpdate"] = "GUILD_UPDATE"; + GatewayDispatchEvents3["IntegrationCreate"] = "INTEGRATION_CREATE"; + GatewayDispatchEvents3["IntegrationDelete"] = "INTEGRATION_DELETE"; + GatewayDispatchEvents3["IntegrationUpdate"] = "INTEGRATION_UPDATE"; + GatewayDispatchEvents3["InteractionCreate"] = "INTERACTION_CREATE"; + GatewayDispatchEvents3["InviteCreate"] = "INVITE_CREATE"; + GatewayDispatchEvents3["InviteDelete"] = "INVITE_DELETE"; + GatewayDispatchEvents3["MessageCreate"] = "MESSAGE_CREATE"; + GatewayDispatchEvents3["MessageDelete"] = "MESSAGE_DELETE"; + GatewayDispatchEvents3["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK"; + GatewayDispatchEvents3["MessageReactionAdd"] = "MESSAGE_REACTION_ADD"; + GatewayDispatchEvents3["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE"; + GatewayDispatchEvents3["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL"; + GatewayDispatchEvents3["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI"; + GatewayDispatchEvents3["MessageUpdate"] = "MESSAGE_UPDATE"; + GatewayDispatchEvents3["PresenceUpdate"] = "PRESENCE_UPDATE"; + GatewayDispatchEvents3["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE"; + GatewayDispatchEvents3["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE"; + GatewayDispatchEvents3["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE"; + GatewayDispatchEvents3["Ready"] = "READY"; + GatewayDispatchEvents3["Resumed"] = "RESUMED"; + GatewayDispatchEvents3["ThreadCreate"] = "THREAD_CREATE"; + GatewayDispatchEvents3["ThreadDelete"] = "THREAD_DELETE"; + GatewayDispatchEvents3["ThreadListSync"] = "THREAD_LIST_SYNC"; + GatewayDispatchEvents3["ThreadMembersUpdate"] = "THREAD_MEMBERS_UPDATE"; + GatewayDispatchEvents3["ThreadMemberUpdate"] = "THREAD_MEMBER_UPDATE"; + GatewayDispatchEvents3["ThreadUpdate"] = "THREAD_UPDATE"; + GatewayDispatchEvents3["TypingStart"] = "TYPING_START"; + GatewayDispatchEvents3["UserUpdate"] = "USER_UPDATE"; + GatewayDispatchEvents3["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE"; + GatewayDispatchEvents3["VoiceStateUpdate"] = "VOICE_STATE_UPDATE"; + GatewayDispatchEvents3["WebhooksUpdate"] = "WEBHOOKS_UPDATE"; + GatewayDispatchEvents3["MessagePollVoteAdd"] = "MESSAGE_POLL_VOTE_ADD"; + GatewayDispatchEvents3["MessagePollVoteRemove"] = "MESSAGE_POLL_VOTE_REMOVE"; + GatewayDispatchEvents3["GuildScheduledEventCreate"] = "GUILD_SCHEDULED_EVENT_CREATE"; + GatewayDispatchEvents3["GuildScheduledEventUpdate"] = "GUILD_SCHEDULED_EVENT_UPDATE"; + GatewayDispatchEvents3["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE"; + GatewayDispatchEvents3["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD"; + GatewayDispatchEvents3["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE"; + GatewayDispatchEvents3["AutoModerationRuleCreate"] = "AUTO_MODERATION_RULE_CREATE"; + GatewayDispatchEvents3["AutoModerationRuleUpdate"] = "AUTO_MODERATION_RULE_UPDATE"; + GatewayDispatchEvents3["AutoModerationRuleDelete"] = "AUTO_MODERATION_RULE_DELETE"; + GatewayDispatchEvents3["AutoModerationActionExecution"] = "AUTO_MODERATION_ACTION_EXECUTION"; + GatewayDispatchEvents3["GuildAuditLogEntryCreate"] = "GUILD_AUDIT_LOG_ENTRY_CREATE"; + GatewayDispatchEvents3["EntitlementCreate"] = "ENTITLEMENT_CREATE"; + GatewayDispatchEvents3["EntitlementUpdate"] = "ENTITLEMENT_UPDATE"; + GatewayDispatchEvents3["EntitlementDelete"] = "ENTITLEMENT_DELETE"; + })(GatewayDispatchEvents2 || (exports.GatewayDispatchEvents = GatewayDispatchEvents2 = {})); + } +}); + +// ../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/globals.js +var require_globals = __commonJS({ + "../../node_modules/.pnpm/discord-api-types@0.37.98/node_modules/discord-api-types/globals.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + exports.FormattingPatterns = void 0; + exports.FormattingPatterns = { + /** + * Regular expression for matching a user mention, strictly without a nickname + * + * The `id` group property is present on the `exec` result of this expression + */ + User: /<@(?\d{17,20})>/, + /** + * Regular expression for matching a user mention, strictly with a nickname + * + * The `id` group property is present on the `exec` result of this expression + * + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it + */ + UserWithNickname: /<@!(?\d{17,20})>/, + /** + * Regular expression for matching a user mention, with or without a nickname + * + * The `id` group property is present on the `exec` result of this expression + * + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it + */ + UserWithOptionalNickname: /<@!?(?\d{17,20})>/, + /** + * Regular expression for matching a channel mention + * + * The `id` group property is present on the `exec` result of this expression + */ + Channel: /<#(?\d{17,20})>/, + /** + * Regular expression for matching a role mention + * + * The `id` group property is present on the `exec` result of this expression + */ + Role: /<@&(?\d{17,20})>/, + /** + * Regular expression for matching a application command mention + * + * The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression + */ + SlashCommand: ( + // eslint-disable-next-line unicorn/no-unsafe-regex + /<\/(?(?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32})(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?(?: (?[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?):(?\d{17,20})>/u + ), + /** + * Regular expression for matching a custom emoji, either static or animated + * + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression + */ + Emoji: /<(?a)?:(?\w{2,32}):(?\d{17,20})>/, + /** + * Regular expression for matching strictly an animated custom emoji + * + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression + */ + AnimatedEmoji: /<(?a):(?\w{2,32}):(?\d{17,20})>/, + /** + * Regular expression for matching strictly a static custom emoji + * + * The `name` and `id` group properties are present on the `exec` result of this expression + */ + StaticEmoji: /<:(?\w{2,32}):(?\d{17,20})>/, + /** + * Regular expression for matching a timestamp, either default or custom styled + * + * The `timestamp` and `style` group properties are present on the `exec` result of this expression + */ + // eslint-disable-next-line prefer-named-capture-group + Timestamp: /-?\d{1,13})(:(?