UNPKG

@sapphire/discord-utilities

Version:

Discord specific utilities for your JavaScript/TypeScript bots

858 lines (849 loc) • 248 kB
var SapphireDiscordUtilities = (function (exports) { 'use strict'; 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 __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); 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. __defProp(target, "default", { value: mod2, enumerable: true }) , mod2 )); var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); // ../../node_modules/discord-api-types/gateway/common.js var require_common = __commonJS({ "../../node_modules/discord-api-types/gateway/common.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); } }); // ../../node_modules/discord-api-types/gateway/v10.js var require_v10 = __commonJS({ "../../node_modules/discord-api-types/gateway/v10.js"(exports) { var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, 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: /* @__PURE__ */ __name(function() { return m[k]; }, "get") }; } Object.defineProperty(o, k2, desc); } : function(o, m, k, k2) { if (k2 === void 0) k2 = k; o[k2] = m[k]; }); var __exportStar = exports && exports.__exportStar || function(m, exports2) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.VoiceChannelEffectSendAnimationType = 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"; GatewayOpcodes3[GatewayOpcodes3["RequestSoundboardSounds"] = 31] = "RequestSoundboardSounds"; })(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["GuildExpressions"] = 8] = "GuildExpressions"; 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["AutoModerationActionExecution"] = "AUTO_MODERATION_ACTION_EXECUTION"; GatewayDispatchEvents3["AutoModerationRuleCreate"] = "AUTO_MODERATION_RULE_CREATE"; GatewayDispatchEvents3["AutoModerationRuleDelete"] = "AUTO_MODERATION_RULE_DELETE"; GatewayDispatchEvents3["AutoModerationRuleUpdate"] = "AUTO_MODERATION_RULE_UPDATE"; GatewayDispatchEvents3["ChannelCreate"] = "CHANNEL_CREATE"; GatewayDispatchEvents3["ChannelDelete"] = "CHANNEL_DELETE"; GatewayDispatchEvents3["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE"; GatewayDispatchEvents3["ChannelUpdate"] = "CHANNEL_UPDATE"; GatewayDispatchEvents3["EntitlementCreate"] = "ENTITLEMENT_CREATE"; GatewayDispatchEvents3["EntitlementDelete"] = "ENTITLEMENT_DELETE"; GatewayDispatchEvents3["EntitlementUpdate"] = "ENTITLEMENT_UPDATE"; GatewayDispatchEvents3["GuildAuditLogEntryCreate"] = "GUILD_AUDIT_LOG_ENTRY_CREATE"; 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["GuildScheduledEventCreate"] = "GUILD_SCHEDULED_EVENT_CREATE"; GatewayDispatchEvents3["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE"; GatewayDispatchEvents3["GuildScheduledEventUpdate"] = "GUILD_SCHEDULED_EVENT_UPDATE"; GatewayDispatchEvents3["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD"; GatewayDispatchEvents3["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE"; GatewayDispatchEvents3["GuildSoundboardSoundCreate"] = "GUILD_SOUNDBOARD_SOUND_CREATE"; GatewayDispatchEvents3["GuildSoundboardSoundDelete"] = "GUILD_SOUNDBOARD_SOUND_DELETE"; GatewayDispatchEvents3["GuildSoundboardSoundsUpdate"] = "GUILD_SOUNDBOARD_SOUNDS_UPDATE"; GatewayDispatchEvents3["GuildSoundboardSoundUpdate"] = "GUILD_SOUNDBOARD_SOUND_UPDATE"; GatewayDispatchEvents3["SoundboardSounds"] = "SOUNDBOARD_SOUNDS"; 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["MessagePollVoteAdd"] = "MESSAGE_POLL_VOTE_ADD"; GatewayDispatchEvents3["MessagePollVoteRemove"] = "MESSAGE_POLL_VOTE_REMOVE"; 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["Ready"] = "READY"; GatewayDispatchEvents3["Resumed"] = "RESUMED"; GatewayDispatchEvents3["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE"; GatewayDispatchEvents3["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE"; GatewayDispatchEvents3["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE"; GatewayDispatchEvents3["SubscriptionCreate"] = "SUBSCRIPTION_CREATE"; GatewayDispatchEvents3["SubscriptionDelete"] = "SUBSCRIPTION_DELETE"; GatewayDispatchEvents3["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE"; 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["VoiceChannelEffectSend"] = "VOICE_CHANNEL_EFFECT_SEND"; GatewayDispatchEvents3["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE"; GatewayDispatchEvents3["VoiceStateUpdate"] = "VOICE_STATE_UPDATE"; GatewayDispatchEvents3["WebhooksUpdate"] = "WEBHOOKS_UPDATE"; })(GatewayDispatchEvents2 || (exports.GatewayDispatchEvents = GatewayDispatchEvents2 = {})); var VoiceChannelEffectSendAnimationType2; (function(VoiceChannelEffectSendAnimationType3) { VoiceChannelEffectSendAnimationType3[VoiceChannelEffectSendAnimationType3["Premium"] = 0] = "Premium"; VoiceChannelEffectSendAnimationType3[VoiceChannelEffectSendAnimationType3["Basic"] = 1] = "Basic"; })(VoiceChannelEffectSendAnimationType2 || (exports.VoiceChannelEffectSendAnimationType = VoiceChannelEffectSendAnimationType2 = {})); } }); // ../../node_modules/discord-api-types/globals.js var require_globals = __commonJS({ "../../node_modules/discord-api-types/globals.js"(exports) { 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: /<@(?<id>\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: /<@!(?<id>\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: /<@!?(?<id>\d{17,20})>/, /** * Regular expression for matching a channel mention * * The `id` group property is present on the `exec` result of this expression */ Channel: /<#(?<id>\d{17,20})>/, /** * Regular expression for matching a role mention * * The `id` group property is present on the `exec` result of this expression */ Role: /<@&(?<id>\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 /<\/(?<fullName>(?<name>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32})(?: (?<subcommandOrGroup>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?(?: (?<subcommand>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?):(?<id>\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: /<(?<animated>a)?:(?<name>\w{2,32}):(?<id>\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: /<(?<animated>a):(?<name>\w{2,32}):(?<id>\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: /<:(?<name>\w{2,32}):(?<id>\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: /<t:(?<timestamp>-?\d{1,13})(:(?<style>[DFRTdft]))?>/, /** * Regular expression for matching strictly default styled timestamps * * The `timestamp` group property is present on the `exec` result of this expression */ DefaultStyledTimestamp: /<t:(?<timestamp>-?\d{1,13})>/, /** * Regular expression for matching strictly custom styled timestamps * * The `timestamp` and `style` group properties are present on the `exec` result of this expression */ StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRTdft])>/, /** * Regular expression for matching a guild navigation mention * * The `type` group property is present on the `exec` result of this expression */ GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/, /** * Regular expression for matching a linked role mention * * The `id` group property is present on the `exec` result of this expression */ LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/ }; Object.freeze(exports.FormattingPatterns); } }); // ../../node_modules/discord-api-types/payloads/common.js var require_common2 = __commonJS({ "../../node_modules/discord-api-types/payloads/common.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.PermissionFlagsBits = void 0; exports.PermissionFlagsBits = { /** * Allows creation of instant invites * * Applies to channel types: Text, Voice, Stage */ CreateInstantInvite: 1n << 0n, /** * Allows kicking members */ // eslint-disable-next-line sonarjs/no-identical-expressions KickMembers: 1n << 1n, /** * Allows banning members */ BanMembers: 1n << 2n, /** * Allows all permissions and bypasses channel permission overwrites */ Administrator: 1n << 3n, /** * Allows management and editing of channels * * Applies to channel types: Text, Voice, Stage */ ManageChannels: 1n << 4n, /** * Allows management and editing of the guild */ ManageGuild: 1n << 5n, /** * Allows for the addition of reactions to messages * * Applies to channel types: Text, Voice, Stage */ AddReactions: 1n << 6n, /** * Allows for viewing of audit logs */ ViewAuditLog: 1n << 7n, /** * Allows for using priority speaker in a voice channel * * Applies to channel types: Voice */ PrioritySpeaker: 1n << 8n, /** * Allows the user to go live * * Applies to channel types: Voice, Stage */ Stream: 1n << 9n, /** * Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels * * Applies to channel types: Text, Voice, Stage */ ViewChannel: 1n << 10n, /** * Allows for sending messages in a channel and creating threads in a forum * (does not allow sending messages in threads) * * Applies to channel types: Text, Voice, Stage */ SendMessages: 1n << 11n, /** * Allows for sending of `/tts` messages * * Applies to channel types: Text, Voice, Stage */ SendTTSMessages: 1n << 12n, /** * Allows for deletion of other users messages * * Applies to channel types: Text, Voice, Stage */ ManageMessages: 1n << 13n, /** * Links sent by users with this permission will be auto-embedded * * Applies to channel types: Text, Voice, Stage */ EmbedLinks: 1n << 14n, /** * Allows for uploading images and files * * Applies to channel types: Text, Voice, Stage */ AttachFiles: 1n << 15n, /** * Allows for reading of message history * * Applies to channel types: Text, Voice, Stage */ ReadMessageHistory: 1n << 16n, /** * Allows for using the `@everyone` tag to notify all users in a channel, * and the `@here` tag to notify all online users in a channel * * Applies to channel types: Text, Voice, Stage */ MentionEveryone: 1n << 17n, /** * Allows the usage of custom emojis from other servers * * Applies to channel types: Text, Voice, Stage */ UseExternalEmojis: 1n << 18n, /** * Allows for viewing guild insights */ ViewGuildInsights: 1n << 19n, /** * Allows for joining of a voice channel * * Applies to channel types: Voice, Stage */ Connect: 1n << 20n, /** * Allows for speaking in a voice channel * * Applies to channel types: Voice */ Speak: 1n << 21n, /** * Allows for muting members in a voice channel * * Applies to channel types: Voice, Stage */ MuteMembers: 1n << 22n, /** * Allows for deafening of members in a voice channel * * Applies to channel types: Voice */ DeafenMembers: 1n << 23n, /** * Allows for moving of members between voice channels * * Applies to channel types: Voice, Stage */ MoveMembers: 1n << 24n, /** * Allows for using voice-activity-detection in a voice channel * * Applies to channel types: Voice */ UseVAD: 1n << 25n, /** * Allows for modification of own nickname */ ChangeNickname: 1n << 26n, /** * Allows for modification of other users nicknames */ ManageNicknames: 1n << 27n, /** * Allows management and editing of roles * * Applies to channel types: Text, Voice, Stage */ ManageRoles: 1n << 28n, /** * Allows management and editing of webhooks * * Applies to channel types: Text, Voice, Stage */ ManageWebhooks: 1n << 29n, /** * Allows management and editing of emojis, stickers, and soundboard sounds * * @deprecated This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions} */ ManageEmojisAndStickers: 1n << 30n, /** * Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users */ ManageGuildExpressions: 1n << 30n, /** * Allows members to use application commands, including slash commands and context menu commands * * Applies to channel types: Text, Voice, Stage */ UseApplicationCommands: 1n << 31n, /** * Allows for requesting to speak in stage channels * * Applies to channel types: Stage */ RequestToSpeak: 1n << 32n, /** * Allows for editing and deleting scheduled events created by all users * * Applies to channel types: Voice, Stage */ ManageEvents: 1n << 33n, /** * Allows for deleting and archiving threads, and viewing all private threads * * Applies to channel types: Text */ ManageThreads: 1n << 34n, /** * Allows for creating public and announcement threads * * Applies to channel types: Text */ CreatePublicThreads: 1n << 35n, /** * Allows for creating private threads * * Applies to channel types: Text */ CreatePrivateThreads: 1n << 36n, /** * Allows the usage of custom stickers from other servers * * Applies to channel types: Text, Voice, Stage */ UseExternalStickers: 1n << 37n, /** * Allows for sending messages in threads * * Applies to channel types: Text */ SendMessagesInThreads: 1n << 38n, /** * Allows for using Activities (applications with the {@apilink ApplicationFlags.Embedded} flag) in a voice channel * * Applies to channel types: Voice */ UseEmbeddedActivities: 1n << 39n, /** * Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, * and from speaking in voice and stage channels */ ModerateMembers: 1n << 40n, /** * Allows for viewing role subscription insights */ ViewCreatorMonetizationAnalytics: 1n << 41n, /** * Allows for using soundboard in a voice channel * * Applies to channel types: Voice */ UseSoundboard: 1n << 42n, /** * Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user */ CreateGuildExpressions: 1n << 43n, /** * Allows for creating scheduled events, and editing and deleting those created by the current user * * Applies to channel types: Voice, Stage */ CreateEvents: 1n << 44n, /** * Allows the usage of custom soundboard sounds from other servers * * Applies to channel types: Voice */ UseExternalSounds: 1n << 45n, /** * Allows sending voice messages * * Applies to channel types: Text, Voice, Stage */ SendVoiceMessages: 1n << 46n, /** * Allows sending polls * * Applies to channel types: Text, Voice, Stage */ SendPolls: 1n << 49n, /** * Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server * * Applies to channel types: Text, Voice, Stage */ UseExternalApps: 1n << 50n }; Object.freeze(exports.PermissionFlagsBits); } }); // ../../node_modules/discord-api-types/payloads/v10/application.js var require_application = __commonJS({ "../../node_modules/discord-api-types/payloads/v10/application.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplicationWebhookEventStatus = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = void 0; var ApplicationFlags2; (function(ApplicationFlags3) { ApplicationFlags3[ApplicationFlags3["EmbeddedReleased"] = 2] = "EmbeddedReleased"; ApplicationFlags3[ApplicationFlags3["ManagedEmoji"] = 4] = "ManagedEmoji"; ApplicationFlags3[ApplicationFlags3["EmbeddedIAP"] = 8] = "EmbeddedIAP"; ApplicationFlags3[ApplicationFlags3["GroupDMCreate"] = 16] = "GroupDMCreate"; ApplicationFlags3[ApplicationFlags3["ApplicationAutoModerationRuleCreateBadge"] = 64] = "ApplicationAutoModerationRuleCreateBadge"; ApplicationFlags3[ApplicationFlags3["RPCHasConnected"] = 2048] = "RPCHasConnected"; ApplicationFlags3[ApplicationFlags3["GatewayPresence"] = 4096] = "GatewayPresence"; ApplicationFlags3[ApplicationFlags3["GatewayPresenceLimited"] = 8192] = "GatewayPresenceLimited"; ApplicationFlags3[ApplicationFlags3["GatewayGuildMembers"] = 16384] = "GatewayGuildMembers"; ApplicationFlags3[ApplicationFlags3["GatewayGuildMembersLimited"] = 32768] = "GatewayGuildMembersLimited"; ApplicationFlags3[ApplicationFlags3["VerificationPendingGuildLimit"] = 65536] = "VerificationPendingGuildLimit"; ApplicationFlags3[ApplicationFlags3["Embedded"] = 131072] = "Embedded"; ApplicationFlags3[ApplicationFlags3["GatewayMessageContent"] = 262144] = "GatewayMessageContent"; ApplicationFlags3[ApplicationFlags3["GatewayMessageContentLimited"] = 524288] = "GatewayMessageContentLimited"; ApplicationFlags3[ApplicationFlags3["EmbeddedFirstParty"] = 1048576] = "EmbeddedFirstParty"; ApplicationFlags3[ApplicationFlags3["ApplicationCommandBadge"] = 8388608] = "ApplicationCommandBadge"; })(ApplicationFlags2 || (exports.ApplicationFlags = ApplicationFlags2 = {})); var ApplicationRoleConnectionMetadataType2; (function(ApplicationRoleConnectionMetadataType3) { ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["IntegerLessThanOrEqual"] = 1] = "IntegerLessThanOrEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["IntegerGreaterThanOrEqual"] = 2] = "IntegerGreaterThanOrEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["IntegerEqual"] = 3] = "IntegerEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["IntegerNotEqual"] = 4] = "IntegerNotEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["DatetimeLessThanOrEqual"] = 5] = "DatetimeLessThanOrEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["DatetimeGreaterThanOrEqual"] = 6] = "DatetimeGreaterThanOrEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["BooleanEqual"] = 7] = "BooleanEqual"; ApplicationRoleConnectionMetadataType3[ApplicationRoleConnectionMetadataType3["BooleanNotEqual"] = 8] = "BooleanNotEqual"; })(ApplicationRoleConnectionMetadataType2 || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType2 = {})); var ApplicationWebhookEventStatus2; (function(ApplicationWebhookEventStatus3) { ApplicationWebhookEventStatus3[ApplicationWebhookEventStatus3["Disabled"] = 1] = "Disabled"; ApplicationWebhookEventStatus3[ApplicationWebhookEventStatus3["Enabled"] = 2] = "Enabled"; ApplicationWebhookEventStatus3[ApplicationWebhookEventStatus3["DisabledByDiscord"] = 3] = "DisabledByDiscord"; })(ApplicationWebhookEventStatus2 || (exports.ApplicationWebhookEventStatus = ApplicationWebhookEventStatus2 = {})); } }); // ../../node_modules/discord-api-types/payloads/v10/auditLog.js var require_auditLog = __commonJS({ "../../node_modules/discord-api-types/payloads/v10/auditLog.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.AuditLogOptionsType = exports.AuditLogEvent = void 0; var AuditLogEvent2; (function(AuditLogEvent3) { AuditLogEvent3[AuditLogEvent3["GuildUpdate"] = 1] = "GuildUpdate"; AuditLogEvent3[AuditLogEvent3["ChannelCreate"] = 10] = "ChannelCreate"; AuditLogEvent3[AuditLogEvent3["ChannelUpdate"] = 11] = "ChannelUpdate"; AuditLogEvent3[AuditLogEvent3["ChannelDelete"] = 12] = "ChannelDelete"; AuditLogEvent3[AuditLogEvent3["ChannelOverwriteCreate"] = 13] = "ChannelOverwriteCreate"; AuditLogEvent3[AuditLogEvent3["ChannelOverwriteUpdate"] = 14] = "ChannelOverwriteUpdate"; AuditLogEvent3[AuditLogEvent3["ChannelOverwriteDelete"] = 15] = "ChannelOverwriteDelete"; AuditLogEvent3[AuditLogEvent3["MemberKick"] = 20] = "MemberKick"; AuditLogEvent3[AuditLogEvent3["MemberPrune"] = 21] = "MemberPrune"; AuditLogEvent3[AuditLogEvent3["MemberBanAdd"] = 22] = "MemberBanAdd"; AuditLogEvent3[AuditLogEvent3["MemberBanRemove"] = 23] = "MemberBanRemove"; AuditLogEvent3[AuditLogEvent3["MemberUpdate"] = 24] = "MemberUpdate"; AuditLogEvent3[AuditLogEvent3["MemberRoleUpdate"] = 25] = "MemberRoleUpdate"; AuditLogEvent3[AuditLogEvent3["MemberMove"] = 26] = "MemberMove"; AuditLogEvent3[AuditLogEvent3["MemberDisconnect"] = 27] = "MemberDisconnect"; AuditLogEvent3[AuditLogEvent3["BotAdd"] = 28] = "BotAdd"; AuditLogEvent3[AuditLogEvent3["RoleCreate"] = 30] = "RoleCreate"; AuditLogEvent3[AuditLogEvent3["RoleUpdate"] = 31] = "RoleUpdate"; AuditLogEvent3[AuditLogEvent3["RoleDelete"] = 32] = "RoleDelete"; AuditLogEvent3[AuditLogEvent3["InviteCreate"] = 40] = "InviteCreate"; AuditLogEvent3[AuditLogEvent3["InviteUpdate"] = 41] = "InviteUpdate"; AuditLogEvent3[AuditLogEvent3["InviteDelete"] = 42] = "InviteDelete"; AuditLogEvent3[AuditLogEvent3["WebhookCreate"] = 50] = "WebhookCreate"; AuditLogEvent3[AuditLogEvent3["WebhookUpdate"] = 51] = "WebhookUpdate"; AuditLogEvent3[AuditLogEvent3["WebhookDelete"] = 52] = "WebhookDelete"; AuditLogEvent3[AuditLogEvent3["EmojiCreate"] = 60] = "EmojiCreate"; AuditLogEvent3[AuditLogEvent3["EmojiUpdate"] = 61] = "EmojiUpdate"; AuditLogEvent3[AuditLogEvent3["EmojiDelete"] = 62] = "EmojiDelete"; AuditLogEvent3[AuditLogEvent3["MessageDelete"] = 72] = "MessageDelete"; AuditLogEvent3[AuditLogEvent3["MessageBulkDelete"] = 73] = "MessageBulkDelete"; AuditLogEvent3[AuditLogEvent3["MessagePin"] = 74] = "MessagePin"; AuditLogEvent3[AuditLogEvent3["MessageUnpin"] = 75] = "MessageUnpin"; AuditLogEvent3[AuditLogEvent3["IntegrationCreate"] = 80] = "IntegrationCreate"; AuditLogEvent3[AuditLogEvent3["IntegrationUpdate"] = 81] = "IntegrationUpdate"; AuditLogEvent3[AuditLogEvent3["IntegrationDelete"] = 82] = "IntegrationDelete"; AuditLogEvent3[AuditLogEvent3["StageInstanceCreate"] = 83] = "StageInstanceCreate"; AuditLogEvent3[AuditLogEvent3["StageInstanceUpdate"] = 84] = "StageInstanceUpdate"; AuditLogEvent3[AuditLogEvent3["StageInstanceDelete"] = 85] = "StageInstanceDelete"; AuditLogEvent3[AuditLogEvent3["StickerCreate"] = 90] = "StickerCreate"; AuditLogEvent3[AuditLogEvent3["StickerUpdate"] = 91] = "StickerUpdate"; AuditLogEvent3[AuditLogEvent3["StickerDelete"] = 92] = "StickerDelete"; AuditLogEvent3[AuditLogEvent3["GuildScheduledEventCreate"] = 100] = "GuildScheduledEventCreate"; AuditLogEvent3[AuditLogEvent3["GuildScheduledEventUpdate"] = 101] = "GuildScheduledEventUpdate"; AuditLogEvent3[AuditLogEvent3["GuildScheduledEventDelete"] = 102] = "GuildScheduledEventDelete"; AuditLogEvent3[AuditLogEvent3["ThreadCreate"] = 110] = "ThreadCreate"; AuditLogEvent3[AuditLogEvent3["ThreadUpdate"] = 111] = "ThreadUpdate"; AuditLogEvent3[AuditLogEvent3["ThreadDelete"] = 112] = "ThreadDelete"; AuditLogEvent3[AuditLogEvent3["ApplicationCommandPermissionUpdate"] = 121] = "ApplicationCommandPermissionUpdate"; AuditLogEvent3[AuditLogEvent3["SoundboardSoundCreate"] = 130] = "SoundboardSoundCreate"; AuditLogEvent3[AuditLogEvent3["SoundboardSoundUpdate"] = 131] = "SoundboardSoundUpdate"; AuditLogEvent3[AuditLogEvent3["SoundboardSoundDelete"] = 132] = "SoundboardSoundDelete"; AuditLogEvent3[AuditLogEvent3["AutoModerationRuleCreate"] = 140] = "AutoModerationRuleCreate"; AuditLogEvent3[AuditLogEvent3["AutoModerationRuleUpdate"] = 141] = "AutoModerationRuleUpdate"; AuditLogEvent3[AuditLogEvent3["AutoModerationRuleDelete"] = 142] = "AutoModerationRuleDelete"; AuditLogEvent3[AuditLogEvent3["AutoModerationBlockMessage"] = 143] = "AutoModerationBlockMessage"; AuditLogEvent3[AuditLogEvent3["AutoModerationFlagToChannel"] = 144] = "AutoModerationFlagToChannel"; AuditLogEvent3[AuditLogEvent3["AutoModerationUserCommunicationDisabled"] = 145] = "AutoModerationUserCommunicationDisabled"; AuditLogEvent3[AuditLogEvent3["CreatorMonetizationRequestCreated"] = 150] = "CreatorMonetizationRequestCreated"; AuditLogEvent3[AuditLogEvent3["CreatorMonetizationTermsAccepted"] = 151] = "CreatorMonetizationTermsAccepted"; AuditLogEvent3[AuditLogEvent3["OnboardingPromptCreate"] = 163] = "OnboardingPromptCreate"; AuditLogEvent3[AuditLogEvent3["OnboardingPromptUpdate"] = 164] = "OnboardingPromptUpdate"; AuditLogEvent3[AuditLogEvent3["OnboardingPromptDelete"] = 165] = "OnboardingPromptDelete"; AuditLogEvent3[AuditLogEvent3["OnboardingCreate"] = 166] = "OnboardingCreate"; AuditLogEvent3[AuditLogEvent3["OnboardingUpdate"] = 167] = "OnboardingUpdate"; AuditLogEvent3[AuditLogEvent3["HomeSettingsCreate"] = 190] = "HomeSettingsCreate"; AuditLogEvent3[AuditLogEvent3["HomeSettingsUpdate"] = 191] = "HomeSettingsUpdate"; })(AuditLogEvent2 || (exports.AuditLogEvent = AuditLogEvent2 = {})); var AuditLogOptionsType2; (function(AuditLogOptionsType3) { AuditLogOptionsType3["Role"] = "0"; AuditLogOptionsType3["Member"] = "1"; })(AuditLogOptionsType2 || (exports.AuditLogOptionsType = AuditLogOptionsType2 = {})); } }); // ../../node_modules/discord-api-types/payloads/v10/autoModeration.js var require_autoModeration = __commonJS({ "../../node_modules/discord-api-types/payloads/v10/autoModeration.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoModerationActionType = exports.AutoModerationRuleEventType = exports.AutoModerationRuleKeywordPresetType = exports.AutoModerationRuleTriggerType = void 0; var AutoModerationRuleTriggerType2; (function(AutoModerationRuleTriggerType3) { AutoModerationRuleTriggerType3[AutoModerationRuleTriggerType3["Keyword"] = 1] = "Keyword"; AutoModerationRuleTriggerType3[AutoModerationRuleTriggerType3["Spam"] = 3] = "Spam"; AutoModerationRuleTriggerType3[AutoModerationRuleTriggerType3["KeywordPreset"] = 4] = "KeywordPreset"; AutoModerationRuleTriggerType3[AutoModerationRuleTriggerType3["MentionSpam"] = 5] = "MentionSpam"; AutoModerationRuleTriggerType3[AutoModerationRuleTriggerType3["MemberProfile"] = 6] = "MemberProfile"; })(AutoModerationRuleTriggerType2 || (exports.AutoModerationRuleTriggerType = AutoModerationRuleTriggerType2 = {})); var AutoModerationRuleKeywordPresetType2; (function(AutoModerationRuleKeywordPresetType3) { AutoModerationRuleKeywordPresetType3[AutoModerationRuleKeywordPresetType3["Profanity"] = 1] = "Profanity"; AutoModerationRuleKeywordPresetType3[AutoModerationRuleKeywordPresetType3["SexualContent"] = 2] = "SexualContent"; AutoModerationRuleKeywordPresetType3[AutoModerationRuleKeywordPresetType3["Slurs"] = 3] = "Slurs"; })(AutoModerationRuleKeywordPresetType2 || (exports.AutoModerationRuleKeywordPresetType = AutoModerationRuleKeywordPresetType2 = {})); var AutoModerationRuleEventType2; (function(AutoModerationRuleEventType3) { AutoModerationRuleEventType3[AutoModerationRuleEventType3["MessageSend"] = 1] = "MessageSend"; AutoModerationRuleEventType3[AutoModerationRuleEventType3["MemberUpdate"] = 2] = "MemberUpdate"; })(AutoModerationRuleEventType2 || (exports.AutoModerationRuleEventType = AutoModerationRuleEventType2 = {})); var AutoModerationActionType2; (function(AutoModerationActionType3) { AutoModerationActionType3[AutoModerationActionType3["BlockMessage"] = 1] = "BlockMessage"; AutoModerationActionType3[AutoModerationActionType3["SendAlertMessage"] = 2] = "SendAlertMessage"; AutoModerationActionType3[AutoModerationActionType3["Timeout"] = 3] = "Timeout"; AutoModerationActionType3[AutoModerationActionType3["BlockMemberInteraction"] = 4] = "BlockMemberInteraction"; })(AutoModerationActionType2 || (exports.AutoModerationActionType = AutoModerationActionType2 = {})); } }); // ../../node_modules/discord-api-types/payloads/v10/channel.js var require_channel = __commonJS({ "../../node_modules/discord-api-types/payloads/v10/channel.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.ChannelFlags = exports.SelectMenuDefaultValueType = exports.TextInputStyle = exports.ButtonStyle = exports.ComponentType = exports.AllowedMentionsTypes = exports.AttachmentFlags = exports.EmbedType = exports.ThreadMemberFlags = exports.ThreadAutoArchiveDuration = exports.OverwriteType = exports.MessageFlags = exports.MessageReferenceType = exports.MessageActivityType = exports.MessageType = exports.VideoQualityMode = exports.ChannelType = exports.ForumLayoutType = exports.SortOrderType = void 0; var SortOrderType2; (function(SortOrderType3) { SortOrderType3[SortOrderType3["LatestActivity"] = 0] = "LatestActivity"; SortOrderType3[SortOrderType3["CreationDate"] = 1] = "CreationDate"; })(SortOrderType2 || (exports.SortOrderType = SortOrderType2 = {})); var ForumLayoutType2; (function(ForumLayoutType3) { ForumLayoutType3[ForumLayoutType3["NotSet"] = 0] = "NotSet"; ForumLayoutType3[ForumLayoutType3["ListView"] = 1] = "ListView"; ForumLayoutType3[ForumLayoutType3["GalleryView"] = 2] = "GalleryView"; })(ForumLayoutType2 || (exports.ForumLayoutType = ForumLayoutType2 = {})); var ChannelType2; (function(ChannelType3) { ChannelType3[ChannelType3["GuildText"] = 0] = "GuildText"; ChannelType3[ChannelType3["DM"] = 1] = "DM"; ChannelType3[ChannelType3["GuildVoice"] = 2] = "GuildVoice"; ChannelType3[ChannelType3["GroupDM"] = 3] = "GroupDM"; ChannelType3[ChannelType3["GuildCategory"] = 4] = "GuildCategory"; ChannelType3[ChannelType3["GuildAnnouncement"] = 5] = "GuildAnnouncement"; ChannelType3[ChannelType3["AnnouncementThread"] = 10] = "AnnouncementThread"; ChannelType3[ChannelType3["PublicThread"] = 11] = "PublicThread"; ChannelType3[ChannelType3["PrivateThread"] = 12] = "PrivateThread"; ChannelType3[ChannelType3["GuildStageVoice"] = 13] = "GuildStageVoice"; ChannelType3[ChannelType3["GuildDirectory"] = 14] = "GuildDirectory"; ChannelType3[ChannelType3["GuildForum"] = 15] = "GuildForum"; ChannelType3[ChannelType3["GuildMedia"] = 16] = "GuildMedia"; ChannelType3[ChannelType3["GuildNews"] = 5] = "GuildNews"; ChannelType3[ChannelType3["GuildNewsThread"] = 10] = "GuildNewsThread"; ChannelType3[ChannelType3["GuildPublicThread"] = 11] = "GuildPublicThread"; ChannelType3[ChannelType3["GuildPrivateThread"] = 12] = "GuildPrivateThread"; })(ChannelType2 || (exports.ChannelType = ChannelType2 = {})); var VideoQualityMode2; (function(VideoQualityMode3) { VideoQualityMode3[VideoQualityMode3["Auto"] = 1] = "Auto"; VideoQualityMode3[VideoQualityMode3["Full"] = 2] = "Full"; })(VideoQualityMode2 || (exports.VideoQualityMode = VideoQualityMode2 = {})); var MessageType2; (function(MessageType3) { MessageType3[MessageType3["Default"] = 0] = "Default"; MessageType3[MessageType3["RecipientAdd"] = 1] = "RecipientAdd"; MessageType3[MessageType3["RecipientRemove"] = 2] = "RecipientRemove"; MessageType3[MessageType3["Call"] = 3] = "Call"; MessageType3[MessageType3["ChannelNameChange"] = 4] = "ChannelNameChange"; MessageType3[MessageType3["ChannelIconChange"] = 5] = "ChannelIconChange"; MessageType3[MessageType3["ChannelPinnedMessage"] = 6] = "ChannelPinnedMessage"; MessageType3[MessageType3["UserJoin"] = 7] = "UserJoin"; MessageType3[MessageType3["GuildBoost"] = 8] = "GuildBoost"; MessageType3[MessageType3["GuildBoostTier1"] = 9] = "GuildBoostTier1"; MessageType3[MessageType3["GuildBoostTier2"] = 10] = "GuildBoostTier2"; MessageType3[MessageType3["GuildBoostTier3"] = 11] = "GuildBoostTier3"; MessageType3[MessageType3["ChannelFollowAdd"] = 12] = "ChannelFollowAdd"; MessageType3[MessageType3["GuildDiscoveryDisqualified"] = 14] = "GuildDiscoveryDisqualified"; MessageType3[MessageType3["GuildDiscoveryRequalified"] = 15] = "GuildDiscoveryRequalified"; MessageType3[MessageType3["GuildDiscoveryGracePeriodInitialWarning"] = 16] = "GuildDiscoveryGracePeriodInitialWarning"; MessageType3[MessageType3["GuildDiscoveryGracePeriodFinalWarning"] = 17] = "GuildDiscoveryGracePeriodFinalWarning"; MessageType3[MessageType3["ThreadCreated"] = 18] = "ThreadCreated"; MessageType3[MessageType3["Reply"] = 19] = "Reply"; MessageType3[MessageType3["ChatInputCommand"] = 20] = "ChatInputCommand"; MessageType3[MessageType3["ThreadStarterMessage"] = 21] = "ThreadStarterMessage"; MessageType3[MessageType3["GuildInviteReminder"] = 22] = "GuildInviteReminder"; MessageType3[MessageType3["ContextMenuCommand"] = 23] = "ContextMenuCommand"; MessageType3[MessageType3["AutoModerationAction"] = 24] = "AutoModerationAction"; MessageType3[MessageType3["RoleSubscriptionPurchase"] = 25] = "RoleSubscriptionPurchase"; MessageType3[MessageType3["InteractionPremiumUpsell"] = 26] = "InteractionPremiumUpsell"; MessageType3[MessageType3["StageStart"] = 27] = "StageStart"; MessageType3[MessageType3["StageEnd"] = 28] = "StageEnd"; MessageType3[MessageType3["StageSpeaker"] = 29] = "StageSpeaker"; MessageType3[MessageType3["StageRaiseHand"] = 30] = "StageRaiseHand"; MessageType3[MessageType3["StageTopic"] = 31] = "StageTopic"; MessageType3[MessageType3["GuildApplicationPremiumSubscription"] = 32] = "GuildApplicationPremiumSubscription"; MessageType3[MessageType3["GuildIncidentAlertModeEnabled"] = 36] = "GuildIncidentAlertModeEnabled"; MessageType3[MessageType3["GuildIncidentAlertModeDisabled"] = 37] = "GuildIncidentAlertModeDisabled"; MessageType3[MessageType3["GuildIncidentReportRaid"] = 38] = "GuildIncidentReportRaid"; MessageType3[MessageType3["GuildIncidentReportFalseAlarm"] = 39] = "GuildIncidentReportFalseAlarm"; MessageType3[MessageType3["PurchaseNotification"] = 44] = "PurchaseNotification"; MessageType3[MessageType3["PollResult"] = 46] = "PollResult"; })(MessageType2 || (exports.MessageType = MessageType2 = {})); var MessageActivityType2; (function(MessageActivityType3) { MessageActivityType3[MessageActivityType3["Join"] = 1] = "Join"; MessageActivityType3[MessageActivityType3["Spectate"] = 2] = "Spectate"; MessageActivityType3[MessageActivityType3["Listen"] = 3] = "Listen"; MessageActivityType3[MessageActivityType3["JoinRequest"] = 5] = "JoinRequest"; })(MessageActivityType2 || (exports.MessageActivityType = MessageActivityType2 = {})); var MessageReferenceType2; (function(MessageReferenceType3) { MessageReferenceType3[MessageReferenceType3["Default"] = 0] = "Default"; MessageReferenceType3[MessageReferenceType3["Forward"] = 1] = "Forward"; })(MessageReferenceType2 || (exports.MessageReferenceType = MessageReferenceType2 = {})); var MessageFlags2; (function(MessageFlags3) { MessageFlags3[MessageFlags3["Crossposted"] = 1] = "Crossposted"; MessageFlags3[MessageFlags3["IsCr