discord-selfbot-v13.js 0.0.1-security → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of discord-selfbot-v13.js might be problematic. Click here for more details.
- package/LICENSE +674 -0
- package/README.md +128 -5
- package/package.json +98 -3
- package/src/WebSocket.js +39 -0
- package/src/client/BaseClient.js +87 -0
- package/src/client/Client.js +1124 -0
- package/src/client/WebhookClient.js +61 -0
- package/src/client/actions/Action.js +120 -0
- package/src/client/actions/ActionsManager.js +78 -0
- package/src/client/actions/ApplicationCommandPermissionsUpdate.js +34 -0
- package/src/client/actions/AutoModerationActionExecution.js +26 -0
- package/src/client/actions/AutoModerationRuleCreate.js +27 -0
- package/src/client/actions/AutoModerationRuleDelete.js +31 -0
- package/src/client/actions/AutoModerationRuleUpdate.js +29 -0
- package/src/client/actions/ChannelCreate.js +23 -0
- package/src/client/actions/ChannelDelete.js +39 -0
- package/src/client/actions/ChannelUpdate.js +43 -0
- package/src/client/actions/GuildAuditLogEntryCreate.js +29 -0
- package/src/client/actions/GuildBanAdd.js +20 -0
- package/src/client/actions/GuildBanRemove.js +25 -0
- package/src/client/actions/GuildChannelsPositionUpdate.js +21 -0
- package/src/client/actions/GuildDelete.js +65 -0
- package/src/client/actions/GuildEmojiCreate.js +20 -0
- package/src/client/actions/GuildEmojiDelete.js +21 -0
- package/src/client/actions/GuildEmojiUpdate.js +20 -0
- package/src/client/actions/GuildEmojisUpdate.js +34 -0
- package/src/client/actions/GuildIntegrationsUpdate.js +19 -0
- package/src/client/actions/GuildMemberRemove.js +33 -0
- package/src/client/actions/GuildMemberUpdate.js +44 -0
- package/src/client/actions/GuildRoleCreate.js +25 -0
- package/src/client/actions/GuildRoleDelete.js +31 -0
- package/src/client/actions/GuildRoleUpdate.js +39 -0
- package/src/client/actions/GuildRolesPositionUpdate.js +21 -0
- package/src/client/actions/GuildScheduledEventCreate.js +27 -0
- package/src/client/actions/GuildScheduledEventDelete.js +31 -0
- package/src/client/actions/GuildScheduledEventUpdate.js +30 -0
- package/src/client/actions/GuildScheduledEventUserAdd.js +32 -0
- package/src/client/actions/GuildScheduledEventUserRemove.js +32 -0
- package/src/client/actions/GuildStickerCreate.js +20 -0
- package/src/client/actions/GuildStickerDelete.js +21 -0
- package/src/client/actions/GuildStickerUpdate.js +20 -0
- package/src/client/actions/GuildStickersUpdate.js +34 -0
- package/src/client/actions/GuildUpdate.js +33 -0
- package/src/client/actions/InteractionCreate.js +115 -0
- package/src/client/actions/InviteCreate.js +28 -0
- package/src/client/actions/InviteDelete.js +30 -0
- package/src/client/actions/MessageCreate.js +61 -0
- package/src/client/actions/MessageDelete.js +32 -0
- package/src/client/actions/MessageDeleteBulk.js +46 -0
- package/src/client/actions/MessageReactionAdd.js +56 -0
- package/src/client/actions/MessageReactionRemove.js +45 -0
- package/src/client/actions/MessageReactionRemoveAll.js +33 -0
- package/src/client/actions/MessageReactionRemoveEmoji.js +28 -0
- package/src/client/actions/MessageUpdate.js +26 -0
- package/src/client/actions/PresenceUpdate.js +45 -0
- package/src/client/actions/StageInstanceCreate.js +28 -0
- package/src/client/actions/StageInstanceDelete.js +33 -0
- package/src/client/actions/StageInstanceUpdate.js +30 -0
- package/src/client/actions/ThreadCreate.js +24 -0
- package/src/client/actions/ThreadDelete.js +32 -0
- package/src/client/actions/ThreadListSync.js +59 -0
- package/src/client/actions/ThreadMemberUpdate.js +30 -0
- package/src/client/actions/ThreadMembersUpdate.js +34 -0
- package/src/client/actions/TypingStart.js +29 -0
- package/src/client/actions/UserUpdate.js +35 -0
- package/src/client/actions/VoiceStateUpdate.js +57 -0
- package/src/client/actions/WebhooksUpdate.js +20 -0
- package/src/client/voice/ClientVoiceManager.js +51 -0
- package/src/client/websocket/WebSocketManager.js +412 -0
- package/src/client/websocket/WebSocketShard.js +905 -0
- package/src/client/websocket/handlers/APPLICATION_COMMAND_AUTOCOMPLETE_RESPONSE.js +23 -0
- package/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js +18 -0
- package/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js +20 -0
- package/src/client/websocket/handlers/APPLICATION_COMMAND_PERMISSIONS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js +20 -0
- package/src/client/websocket/handlers/AUTO_MODERATION_ACTION_EXECUTION.js +5 -0
- package/src/client/websocket/handlers/AUTO_MODERATION_RULE_CREATE.js +5 -0
- package/src/client/websocket/handlers/AUTO_MODERATION_RULE_DELETE.js +5 -0
- package/src/client/websocket/handlers/AUTO_MODERATION_RULE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/CALL_CREATE.js +14 -0
- package/src/client/websocket/handlers/CALL_DELETE.js +11 -0
- package/src/client/websocket/handlers/CALL_UPDATE.js +11 -0
- package/src/client/websocket/handlers/CHANNEL_CREATE.js +5 -0
- package/src/client/websocket/handlers/CHANNEL_DELETE.js +5 -0
- package/src/client/websocket/handlers/CHANNEL_PINS_UPDATE.js +22 -0
- package/src/client/websocket/handlers/CHANNEL_RECIPIENT_ADD.js +16 -0
- package/src/client/websocket/handlers/CHANNEL_RECIPIENT_REMOVE.js +16 -0
- package/src/client/websocket/handlers/CHANNEL_UPDATE.js +16 -0
- package/src/client/websocket/handlers/GUILD_APPLICATION_COMMANDS_UPDATE.js +11 -0
- package/src/client/websocket/handlers/GUILD_AUDIT_LOG_ENTRY_CREATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_BAN_ADD.js +5 -0
- package/src/client/websocket/handlers/GUILD_BAN_REMOVE.js +5 -0
- package/src/client/websocket/handlers/GUILD_CREATE.js +53 -0
- package/src/client/websocket/handlers/GUILD_DELETE.js +5 -0
- package/src/client/websocket/handlers/GUILD_EMOJIS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_INTEGRATIONS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_MEMBERS_CHUNK.js +39 -0
- package/src/client/websocket/handlers/GUILD_MEMBER_ADD.js +20 -0
- package/src/client/websocket/handlers/GUILD_MEMBER_LIST_UPDATE.js +55 -0
- package/src/client/websocket/handlers/GUILD_MEMBER_REMOVE.js +5 -0
- package/src/client/websocket/handlers/GUILD_MEMBER_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_ROLE_CREATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_ROLE_DELETE.js +5 -0
- package/src/client/websocket/handlers/GUILD_ROLE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_CREATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_DELETE.js +5 -0
- package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_ADD.js +5 -0
- package/src/client/websocket/handlers/GUILD_SCHEDULED_EVENT_USER_REMOVE.js +5 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUNDS_UPDATE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_CREATE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_DELETE.js +0 -0
- package/src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_UPDATE.js +0 -0
- package/src/client/websocket/handlers/GUILD_STICKERS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/GUILD_UPDATE.js +5 -0
- package/src/client/websocket/handlers/INTERACTION_CREATE.js +16 -0
- package/src/client/websocket/handlers/INTERACTION_FAILURE.js +18 -0
- package/src/client/websocket/handlers/INTERACTION_MODAL_CREATE.js +11 -0
- package/src/client/websocket/handlers/INTERACTION_SUCCESS.js +30 -0
- package/src/client/websocket/handlers/INVITE_CREATE.js +5 -0
- package/src/client/websocket/handlers/INVITE_DELETE.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_ACK.js +16 -0
- package/src/client/websocket/handlers/MESSAGE_CREATE.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_DELETE.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_DELETE_BULK.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_REACTION_ADD.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_ALL.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_REACTION_REMOVE_EMOJI.js +5 -0
- package/src/client/websocket/handlers/MESSAGE_UPDATE.js +16 -0
- package/src/client/websocket/handlers/PRESENCE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/READY.js +171 -0
- package/src/client/websocket/handlers/RELATIONSHIP_ADD.js +17 -0
- package/src/client/websocket/handlers/RELATIONSHIP_REMOVE.js +15 -0
- package/src/client/websocket/handlers/RELATIONSHIP_UPDATE.js +18 -0
- package/src/client/websocket/handlers/RESUMED.js +14 -0
- package/src/client/websocket/handlers/SOUNDBOARD_SOUNDS.js +0 -0
- package/src/client/websocket/handlers/STAGE_INSTANCE_CREATE.js +5 -0
- package/src/client/websocket/handlers/STAGE_INSTANCE_DELETE.js +5 -0
- package/src/client/websocket/handlers/STAGE_INSTANCE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/THREAD_CREATE.js +5 -0
- package/src/client/websocket/handlers/THREAD_DELETE.js +5 -0
- package/src/client/websocket/handlers/THREAD_LIST_SYNC.js +5 -0
- package/src/client/websocket/handlers/THREAD_MEMBERS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/THREAD_MEMBER_UPDATE.js +5 -0
- package/src/client/websocket/handlers/THREAD_UPDATE.js +16 -0
- package/src/client/websocket/handlers/TYPING_START.js +5 -0
- package/src/client/websocket/handlers/USER_GUILD_SETTINGS_UPDATE.js +12 -0
- package/src/client/websocket/handlers/USER_NOTE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/USER_REQUIRED_ACTION_UPDATE.js +5 -0
- package/src/client/websocket/handlers/USER_SETTINGS_UPDATE.js +9 -0
- package/src/client/websocket/handlers/USER_UPDATE.js +5 -0
- package/src/client/websocket/handlers/VOICE_CHANNEL_EFFECT_SEND.js +0 -0
- package/src/client/websocket/handlers/VOICE_SERVER_UPDATE.js +6 -0
- package/src/client/websocket/handlers/VOICE_STATE_UPDATE.js +5 -0
- package/src/client/websocket/handlers/WEBHOOKS_UPDATE.js +5 -0
- package/src/client/websocket/handlers/index.js +87 -0
- package/src/errors/DJSError.js +61 -0
- package/src/errors/Messages.js +228 -0
- package/src/errors/index.js +4 -0
- package/src/index.js +194 -0
- package/src/managers/ApplicationCommandManager.js +267 -0
- package/src/managers/ApplicationCommandPermissionsManager.js +425 -0
- package/src/managers/AutoModerationRuleManager.js +296 -0
- package/src/managers/BaseGuildEmojiManager.js +80 -0
- package/src/managers/BaseManager.js +19 -0
- package/src/managers/BillingManager.js +66 -0
- package/src/managers/CachedManager.js +71 -0
- package/src/managers/ChannelManager.js +139 -0
- package/src/managers/ClientUserSettingManager.js +490 -0
- package/src/managers/DataManager.js +61 -0
- package/src/managers/DeveloperPortalManager.js +104 -0
- package/src/managers/GuildApplicationCommandManager.js +28 -0
- package/src/managers/GuildBanManager.js +204 -0
- package/src/managers/GuildChannelManager.js +504 -0
- package/src/managers/GuildEmojiManager.js +171 -0
- package/src/managers/GuildEmojiRoleManager.js +118 -0
- package/src/managers/GuildFolderManager.js +24 -0
- package/src/managers/GuildForumThreadManager.js +114 -0
- package/src/managers/GuildInviteManager.js +213 -0
- package/src/managers/GuildManager.js +304 -0
- package/src/managers/GuildMemberManager.js +772 -0
- package/src/managers/GuildMemberRoleManager.js +191 -0
- package/src/managers/GuildScheduledEventManager.js +296 -0
- package/src/managers/GuildSettingManager.js +148 -0
- package/src/managers/GuildStickerManager.js +179 -0
- package/src/managers/GuildTextThreadManager.js +98 -0
- package/src/managers/InteractionManager.js +39 -0
- package/src/managers/MessageManager.js +393 -0
- package/src/managers/PermissionOverwriteManager.js +166 -0
- package/src/managers/PresenceManager.js +58 -0
- package/src/managers/ReactionManager.js +67 -0
- package/src/managers/ReactionUserManager.js +71 -0
- package/src/managers/RelationshipManager.js +258 -0
- package/src/managers/RoleManager.js +352 -0
- package/src/managers/SessionManager.js +57 -0
- package/src/managers/StageInstanceManager.js +162 -0
- package/src/managers/ThreadManager.js +207 -0
- package/src/managers/ThreadMemberManager.js +186 -0
- package/src/managers/UserManager.js +150 -0
- package/src/managers/VoiceStateManager.js +37 -0
- package/src/rest/APIRequest.js +133 -0
- package/src/rest/APIRouter.js +53 -0
- package/src/rest/CaptchaSolver.js +139 -0
- package/src/rest/DiscordAPIError.js +103 -0
- package/src/rest/HTTPError.js +62 -0
- package/src/rest/RESTManager.js +82 -0
- package/src/rest/RateLimitError.js +55 -0
- package/src/rest/RequestHandler.js +430 -0
- package/src/sharding/Shard.js +443 -0
- package/src/sharding/ShardClientUtil.js +275 -0
- package/src/sharding/ShardingManager.js +318 -0
- package/src/structures/AnonymousGuild.js +98 -0
- package/src/structures/ApplicationCommand.js +1030 -0
- package/src/structures/ApplicationRoleConnectionMetadata.js +45 -0
- package/src/structures/AutoModerationActionExecution.js +89 -0
- package/src/structures/AutoModerationRule.js +294 -0
- package/src/structures/AutocompleteInteraction.js +106 -0
- package/src/structures/Base.js +43 -0
- package/src/structures/BaseCommandInteraction.js +211 -0
- package/src/structures/BaseGuild.js +116 -0
- package/src/structures/BaseGuildEmoji.js +56 -0
- package/src/structures/BaseGuildTextChannel.js +203 -0
- package/src/structures/BaseGuildVoiceChannel.js +243 -0
- package/src/structures/BaseMessageComponent.js +114 -0
- package/src/structures/ButtonInteraction.js +11 -0
- package/src/structures/Call.js +58 -0
- package/src/structures/CategoryChannel.js +85 -0
- package/src/structures/Channel.js +271 -0
- package/src/structures/ClientApplication.js +233 -0
- package/src/structures/ClientPresence.js +92 -0
- package/src/structures/ClientUser.js +635 -0
- package/src/structures/CommandInteraction.js +41 -0
- package/src/structures/CommandInteractionOptionResolver.js +276 -0
- package/src/structures/ContextMenuInteraction.js +65 -0
- package/src/structures/DMChannel.js +289 -0
- package/src/structures/DeveloperPortalApplication.js +520 -0
- package/src/structures/DirectoryChannel.js +20 -0
- package/src/structures/Emoji.js +148 -0
- package/src/structures/ForumChannel.js +271 -0
- package/src/structures/Guild.js +1744 -0
- package/src/structures/GuildAuditLogs.js +734 -0
- package/src/structures/GuildBan.js +59 -0
- package/src/structures/GuildBoost.js +108 -0
- package/src/structures/GuildChannel.js +468 -0
- package/src/structures/GuildEmoji.js +161 -0
- package/src/structures/GuildFolder.js +75 -0
- package/src/structures/GuildMember.js +686 -0
- package/src/structures/GuildPreview.js +191 -0
- package/src/structures/GuildPreviewEmoji.js +27 -0
- package/src/structures/GuildScheduledEvent.js +441 -0
- package/src/structures/GuildTemplate.js +236 -0
- package/src/structures/Integration.js +188 -0
- package/src/structures/IntegrationApplication.js +96 -0
- package/src/structures/Interaction.js +351 -0
- package/src/structures/InteractionCollector.js +248 -0
- package/src/structures/InteractionResponse.js +114 -0
- package/src/structures/InteractionWebhook.js +43 -0
- package/src/structures/Invite.js +375 -0
- package/src/structures/InviteGuild.js +23 -0
- package/src/structures/InviteStageInstance.js +86 -0
- package/src/structures/Message.js +1188 -0
- package/src/structures/MessageActionRow.js +103 -0
- package/src/structures/MessageAttachment.js +204 -0
- package/src/structures/MessageButton.js +231 -0
- package/src/structures/MessageCollector.js +146 -0
- package/src/structures/MessageComponentInteraction.js +120 -0
- package/src/structures/MessageContextMenuInteraction.js +20 -0
- package/src/structures/MessageEmbed.js +586 -0
- package/src/structures/MessageMentions.js +272 -0
- package/src/structures/MessagePayload.js +358 -0
- package/src/structures/MessageReaction.js +171 -0
- package/src/structures/MessageSelectMenu.js +391 -0
- package/src/structures/Modal.js +279 -0
- package/src/structures/ModalSubmitFieldsResolver.js +53 -0
- package/src/structures/ModalSubmitInteraction.js +119 -0
- package/src/structures/NewsChannel.js +32 -0
- package/src/structures/OAuth2Guild.js +28 -0
- package/src/structures/PartialGroupDMChannel.js +449 -0
- package/src/structures/PermissionOverwrites.js +196 -0
- package/src/structures/Presence.js +443 -0
- package/src/structures/ReactionCollector.js +229 -0
- package/src/structures/ReactionEmoji.js +31 -0
- package/src/structures/RichPresence.js +722 -0
- package/src/structures/Role.js +531 -0
- package/src/structures/SelectMenuInteraction.js +170 -0
- package/src/structures/Session.js +81 -0
- package/src/structures/StageChannel.js +104 -0
- package/src/structures/StageInstance.js +208 -0
- package/src/structures/Sticker.js +310 -0
- package/src/structures/StickerPack.js +95 -0
- package/src/structures/StoreChannel.js +56 -0
- package/src/structures/Team.js +167 -0
- package/src/structures/TeamMember.js +71 -0
- package/src/structures/TextChannel.js +33 -0
- package/src/structures/TextInputComponent.js +201 -0
- package/src/structures/ThreadChannel.js +626 -0
- package/src/structures/ThreadMember.js +105 -0
- package/src/structures/Typing.js +74 -0
- package/src/structures/User.js +730 -0
- package/src/structures/UserContextMenuInteraction.js +29 -0
- package/src/structures/VoiceChannel.js +110 -0
- package/src/structures/VoiceRegion.js +53 -0
- package/src/structures/VoiceState.js +353 -0
- package/src/structures/WebEmbed.js +412 -0
- package/src/structures/Webhook.js +461 -0
- package/src/structures/WelcomeChannel.js +60 -0
- package/src/structures/WelcomeScreen.js +48 -0
- package/src/structures/Widget.js +87 -0
- package/src/structures/WidgetMember.js +99 -0
- package/src/structures/interfaces/Application.js +190 -0
- package/src/structures/interfaces/Collector.js +300 -0
- package/src/structures/interfaces/InteractionResponses.js +313 -0
- package/src/structures/interfaces/TextBasedChannel.js +566 -0
- package/src/util/ActivityFlags.js +44 -0
- package/src/util/ApplicationFlags.js +76 -0
- package/src/util/AttachmentFlags.js +38 -0
- package/src/util/BitField.js +170 -0
- package/src/util/ChannelFlags.js +45 -0
- package/src/util/Constants.js +1940 -0
- package/src/util/DataResolver.js +145 -0
- package/src/util/Formatters.js +214 -0
- package/src/util/GuildMemberFlags.js +43 -0
- package/src/util/Intents.js +74 -0
- package/src/util/LimitedCollection.js +131 -0
- package/src/util/MessageFlags.js +54 -0
- package/src/util/Options.js +364 -0
- package/src/util/Permissions.js +187 -0
- package/src/util/PremiumUsageFlags.js +31 -0
- package/src/util/PurchasedFlags.js +31 -0
- package/src/util/RemoteAuth.js +514 -0
- package/src/util/RoleFlags.js +37 -0
- package/src/util/SnowflakeUtil.js +92 -0
- package/src/util/Sweepers.js +466 -0
- package/src/util/SystemChannelFlags.js +55 -0
- package/src/util/ThreadMemberFlags.js +30 -0
- package/src/util/UserFlags.js +104 -0
- package/src/util/Util.js +882 -0
- package/src/util/Voice.js +1456 -0
- package/src/util/arRPC/index.js +229 -0
- package/src/util/arRPC/process/detectable.json +1 -0
- package/src/util/arRPC/process/index.js +102 -0
- package/src/util/arRPC/process/native/index.js +5 -0
- package/src/util/arRPC/process/native/linux.js +37 -0
- package/src/util/arRPC/process/native/win32.js +25 -0
- package/src/util/arRPC/transports/ipc.js +281 -0
- package/src/util/arRPC/transports/websocket.js +128 -0
- package/typings/enums.d.ts +346 -0
- package/typings/index.d.ts +7776 -0
- package/typings/index.test-d.ts +0 -0
- package/typings/rawDataTypes.d.ts +283 -0
@@ -0,0 +1,228 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const { register } = require('./DJSError');
|
4
|
+
|
5
|
+
const Messages = {
|
6
|
+
CLIENT_INVALID_OPTION: (prop, must) => `The ${prop} option must be ${must}`,
|
7
|
+
CLIENT_INVALID_PROVIDED_SHARDS: 'None of the provided shards were valid.',
|
8
|
+
CLIENT_MISSING_INTENTS: 'Valid intents must be provided for the Client.',
|
9
|
+
CLIENT_NOT_READY: action => `The client needs to be logged in to ${action}.`,
|
10
|
+
|
11
|
+
TOKEN_INVALID: 'An invalid token was provided.',
|
12
|
+
TOKEN_MISSING: 'Request to use token, but token was unavailable to the client.',
|
13
|
+
|
14
|
+
MFA_INVALID: 'An invalid mfa code was provided',
|
15
|
+
|
16
|
+
WS_CLOSE_REQUESTED: 'WebSocket closed due to user request.',
|
17
|
+
WS_CONNECTION_EXISTS: 'There is already an existing WebSocket connection.',
|
18
|
+
WS_NOT_OPEN: (data = 'data') => `WebSocket not open to send ${data}`,
|
19
|
+
MANAGER_DESTROYED: 'Manager was destroyed.',
|
20
|
+
|
21
|
+
BITFIELD_INVALID: bit => `Invalid bitfield flag or number: ${bit}.`,
|
22
|
+
|
23
|
+
SHARDING_INVALID: 'Invalid shard settings were provided.',
|
24
|
+
SHARDING_REQUIRED: 'This session would have handled too many guilds - Sharding is required.',
|
25
|
+
INVALID_INTENTS: '[Bot Token] Invalid intent provided for WebSocket intents.',
|
26
|
+
DISALLOWED_INTENTS: '[Bot Token] Privileged intent provided is not enabled or whitelisted.',
|
27
|
+
SHARDING_NO_SHARDS: 'No shards have been spawned.',
|
28
|
+
SHARDING_IN_PROCESS: 'Shards are still being spawned.',
|
29
|
+
SHARDING_INVALID_EVAL_BROADCAST: 'Script to evaluate must be a function',
|
30
|
+
SHARDING_SHARD_NOT_FOUND: id => `Shard ${id} could not be found.`,
|
31
|
+
SHARDING_ALREADY_SPAWNED: count => `Already spawned ${count} shards.`,
|
32
|
+
SHARDING_PROCESS_EXISTS: id => `Shard ${id} already has an active process.`,
|
33
|
+
SHARDING_WORKER_EXISTS: id => `Shard ${id} already has an active worker.`,
|
34
|
+
SHARDING_READY_TIMEOUT: id => `Shard ${id}'s Client took too long to become ready.`,
|
35
|
+
SHARDING_READY_DISCONNECTED: id => `Shard ${id}'s Client disconnected before becoming ready.`,
|
36
|
+
SHARDING_READY_DIED: id => `Shard ${id}'s process exited before its Client became ready.`,
|
37
|
+
SHARDING_NO_CHILD_EXISTS: id => `Shard ${id} has no active process or worker.`,
|
38
|
+
SHARDING_SHARD_MISCALCULATION: (shard, guild, count) =>
|
39
|
+
`Calculated invalid shard ${shard} for guild ${guild} with ${count} shards.`,
|
40
|
+
|
41
|
+
COLOR_RANGE: 'Color must be within the range 0 - 16777215 (0xFFFFFF).',
|
42
|
+
COLOR_CONVERT: 'Unable to convert color to a number.',
|
43
|
+
|
44
|
+
INVITE_OPTIONS_MISSING_CHANNEL: 'A valid guild channel must be provided when GuildScheduledEvent is EXTERNAL.',
|
45
|
+
|
46
|
+
EMBED_TITLE: 'MessageEmbed title must be a string.',
|
47
|
+
EMBED_FIELD_NAME: 'MessageEmbed field names must be non-empty strings.',
|
48
|
+
EMBED_FIELD_VALUE: 'MessageEmbed field values must be non-empty strings.',
|
49
|
+
EMBED_FOOTER_TEXT: 'MessageEmbed footer text must be a string.',
|
50
|
+
EMBED_DESCRIPTION: 'MessageEmbed description must be a string.',
|
51
|
+
EMBED_AUTHOR_NAME: 'MessageEmbed author name must be a string.',
|
52
|
+
/* Add */
|
53
|
+
MISSING_PERMISSIONS: (...permission) => `You can't do this action [Missing Permission(s): ${permission.join(', ')}]`,
|
54
|
+
EMBED_PROVIDER_NAME: 'MessageEmbed provider name must be a string.',
|
55
|
+
INVALID_COMMAND_NAME: allCMD => `Could not parse subGroupCommand and subCommand due to too long: ${allCMD.join(' ')}`,
|
56
|
+
INVALID_RANGE_QUERY_MEMBER: 'Invalid range query member. (0<x<=100)',
|
57
|
+
MUST_SPECIFY_BOT: 'You must specify a bot to use this command.',
|
58
|
+
|
59
|
+
BUTTON_LABEL: 'MessageButton label must be a string',
|
60
|
+
BUTTON_URL: 'MessageButton URL must be a string',
|
61
|
+
BUTTON_CUSTOM_ID: 'MessageButton customId must be a string',
|
62
|
+
|
63
|
+
SELECT_MENU_CUSTOM_ID: 'MessageSelectMenu customId must be a string',
|
64
|
+
SELECT_MENU_PLACEHOLDER: 'MessageSelectMenu placeholder must be a string',
|
65
|
+
SELECT_OPTION_LABEL: 'MessageSelectOption label must be a string',
|
66
|
+
SELECT_OPTION_VALUE: 'MessageSelectOption value must be a string',
|
67
|
+
SELECT_OPTION_DESCRIPTION: 'MessageSelectOption description must be a string',
|
68
|
+
|
69
|
+
INTERACTION_COLLECTOR_ERROR: reason => `Collector received no interactions before ending with reason: ${reason}`,
|
70
|
+
|
71
|
+
FILE_NOT_FOUND: file => `File could not be found: ${file}`,
|
72
|
+
|
73
|
+
USER_BANNER_NOT_FETCHED: "You must fetch this user's banner before trying to generate its URL!",
|
74
|
+
USER_NO_DM_CHANNEL: 'No DM Channel exists!',
|
75
|
+
CLIENT_NO_CALL: 'No call exists!',
|
76
|
+
|
77
|
+
VOICE_NOT_STAGE_CHANNEL: 'You are only allowed to do this in stage channels.',
|
78
|
+
VOICE_NOT_IN_GUILD: 'You are only allowed to do this in guild channels.',
|
79
|
+
|
80
|
+
VOICE_STATE_NOT_OWN:
|
81
|
+
'You cannot self-deafen/mute/request to speak on VoiceStates that do not belong to the ClientUser.',
|
82
|
+
VOICE_STATE_INVALID_TYPE: name => `${name} must be a boolean.`,
|
83
|
+
|
84
|
+
REQ_RESOURCE_TYPE: 'The resource must be a string, Buffer or a valid file stream.',
|
85
|
+
|
86
|
+
IMAGE_FORMAT: format => `Invalid image format: ${format}`,
|
87
|
+
IMAGE_SIZE: size => `Invalid image size: ${size}`,
|
88
|
+
|
89
|
+
MESSAGE_BULK_DELETE_TYPE: 'The messages must be an Array, Collection, or number.',
|
90
|
+
MESSAGE_NONCE_TYPE: 'Message nonce must be an integer or a string.',
|
91
|
+
MESSAGE_CONTENT_TYPE: 'Message content must be a non-empty string.',
|
92
|
+
|
93
|
+
SPLIT_MAX_LEN: 'Chunk exceeds the max length and contains no split characters.',
|
94
|
+
|
95
|
+
BAN_RESOLVE_ID: (ban = false) => `Couldn't resolve the user id to ${ban ? 'ban' : 'unban'}.`,
|
96
|
+
FETCH_BAN_RESOLVE_ID: "Couldn't resolve the user id to fetch the ban.",
|
97
|
+
|
98
|
+
PRUNE_DAYS_TYPE: 'Days must be a number',
|
99
|
+
|
100
|
+
GUILD_CHANNEL_RESOLVE: 'Could not resolve channel to a guild channel.',
|
101
|
+
GUILD_VOICE_CHANNEL_RESOLVE: 'Could not resolve channel to a guild voice channel.',
|
102
|
+
GUILD_CHANNEL_ORPHAN: 'Could not find a parent to this guild channel.',
|
103
|
+
GUILD_CHANNEL_UNOWNED: "The fetched channel does not belong to this manager's guild.",
|
104
|
+
GUILD_OWNED: 'Guild is owned by the client.',
|
105
|
+
GUILD_MEMBERS_TIMEOUT: "Members didn't arrive in time.",
|
106
|
+
GUILD_APPLICATION_COMMANDS_SEARCH_TIMEOUT: "Application commands didn't arrive in time.",
|
107
|
+
GUILD_UNCACHED_ME: 'The client user as a member of this guild is uncached.',
|
108
|
+
CHANNEL_NOT_CACHED: 'Could not find the channel where this message came from in the cache!',
|
109
|
+
STAGE_CHANNEL_RESOLVE: 'Could not resolve channel to a stage channel.',
|
110
|
+
GUILD_SCHEDULED_EVENT_RESOLVE: 'Could not resolve the guild scheduled event.',
|
111
|
+
|
112
|
+
REQUIRE_PASSWORD: 'You must provide a password.',
|
113
|
+
INVALIDATE_MEMBER: range => `Invalid member range: [${range[0]}, ${range[1]}]`,
|
114
|
+
|
115
|
+
MISSING_VALUE: (where, type) => `Missing value for ${where} (${type})`,
|
116
|
+
|
117
|
+
INVALID_TYPE: (name, expected, an = false) => `Supplied ${name} is not a${an ? 'n' : ''} ${expected}.`,
|
118
|
+
INVALID_ELEMENT: (type, name, elem) => `Supplied ${type} ${name} includes an invalid element: ${elem}`,
|
119
|
+
|
120
|
+
MESSAGE_THREAD_PARENT: 'The message was not sent in a guild text or news channel',
|
121
|
+
MESSAGE_EXISTING_THREAD: 'The message already has a thread',
|
122
|
+
THREAD_INVITABLE_TYPE: type => `Invitable cannot be edited on ${type}`,
|
123
|
+
|
124
|
+
WEBHOOK_MESSAGE: 'The message was not sent by a webhook.',
|
125
|
+
WEBHOOK_TOKEN_UNAVAILABLE: 'This action requires a webhook token, but none is available.',
|
126
|
+
WEBHOOK_URL_INVALID: 'The provided webhook URL is not valid.',
|
127
|
+
WEBHOOK_APPLICATION: 'This message webhook belongs to an application and cannot be fetched.',
|
128
|
+
MESSAGE_REFERENCE_MISSING: 'The message does not reference another message',
|
129
|
+
|
130
|
+
EMOJI_TYPE: 'Emoji must be a string or GuildEmoji/ReactionEmoji',
|
131
|
+
EMOJI_MANAGED: 'Emoji is managed and has no Author.',
|
132
|
+
MISSING_MANAGE_EMOJIS_AND_STICKERS_PERMISSION: guild =>
|
133
|
+
`Client must have Manage Emojis and Stickers permission in guild ${guild} to see emoji authors.`,
|
134
|
+
NOT_GUILD_STICKER: 'Sticker is a standard (non-guild) sticker and has no author.',
|
135
|
+
|
136
|
+
REACTION_RESOLVE_USER: "Couldn't resolve the user id to remove from the reaction.",
|
137
|
+
|
138
|
+
VANITY_URL: 'This guild does not have the VANITY_URL feature enabled.',
|
139
|
+
|
140
|
+
INVITE_RESOLVE_CODE: 'Could not resolve the code to fetch the invite.',
|
141
|
+
|
142
|
+
INVITE_NOT_FOUND: 'Could not find the requested invite.',
|
143
|
+
|
144
|
+
NOT_OWNER_GROUP_DM_CHANNEL: "You can't do this action [Missing Permission]",
|
145
|
+
USER_ALREADY_IN_GROUP_DM_CHANNEL: 'User is already in the channel.',
|
146
|
+
USER_NOT_IN_GROUP_DM_CHANNEL: 'User is not in the channel.',
|
147
|
+
|
148
|
+
DELETE_GROUP_DM_CHANNEL: "Bots don't have access to Group DM Channels and cannot delete them",
|
149
|
+
FETCH_GROUP_DM_CHANNEL: "Bots don't have access to Group DM Channels and cannot fetch them",
|
150
|
+
|
151
|
+
MEMBER_FETCH_NONCE_LENGTH: 'Nonce length must not exceed 32 characters.',
|
152
|
+
|
153
|
+
GLOBAL_COMMAND_PERMISSIONS:
|
154
|
+
'Permissions for global commands may only be fetched or modified by providing a GuildResolvable ' +
|
155
|
+
"or from a guild's application command manager.",
|
156
|
+
GUILD_UNCACHED_ROLE_RESOLVE: 'Cannot resolve roles from an arbitrary guild, provide an id instead',
|
157
|
+
|
158
|
+
INTERACTION_ALREADY_REPLIED: 'The reply to this interaction has already been sent or deferred.',
|
159
|
+
INTERACTION_NOT_REPLIED: 'The reply to this interaction has not been sent or deferred.',
|
160
|
+
/** @deprecated */
|
161
|
+
INTERACTION_EPHEMERAL_REPLIED: 'Ephemeral responses cannot be deleted.',
|
162
|
+
|
163
|
+
COMMAND_INTERACTION_OPTION_NOT_FOUND: name => `Required option "${name}" not found.`,
|
164
|
+
COMMAND_INTERACTION_OPTION_TYPE: (name, type, expected) =>
|
165
|
+
`Option "${name}" is of type: ${type}; expected ${expected}.`,
|
166
|
+
COMMAND_INTERACTION_OPTION_EMPTY: (name, type) =>
|
167
|
+
`Required option "${name}" is of type: ${type}; expected a non-empty value.`,
|
168
|
+
COMMAND_INTERACTION_OPTION_NO_SUB_COMMAND: 'No subcommand specified for interaction.',
|
169
|
+
COMMAND_INTERACTION_OPTION_NO_SUB_COMMAND_GROUP: 'No subcommand group specified for interaction.',
|
170
|
+
AUTOCOMPLETE_INTERACTION_OPTION_NO_FOCUSED_OPTION: 'No focused option for autocomplete interaction.',
|
171
|
+
|
172
|
+
INVITE_MISSING_SCOPES: 'At least one valid scope must be provided for the invite',
|
173
|
+
|
174
|
+
NOT_IMPLEMENTED: (what, name) => `Method ${what} not implemented on ${name}.`,
|
175
|
+
|
176
|
+
SWEEP_FILTER_RETURN: 'The return value of the sweepFilter function was not false or a Function',
|
177
|
+
|
178
|
+
INVALID_BOT_METHOD: 'Bot accounts cannot use this method',
|
179
|
+
INVALID_USER_METHOD: 'User accounts cannot use this method',
|
180
|
+
BOT_ONLY: 'This method only for bots',
|
181
|
+
USER_ONLY: 'This method only for users',
|
182
|
+
|
183
|
+
INTERACTION_SEND_FAILURE: msg => `${msg}`,
|
184
|
+
|
185
|
+
INVALID_LOCALE: 'Unable to select this location',
|
186
|
+
FOLDER_NOT_FOUND: 'Server directory not found',
|
187
|
+
FOLDER_POSITION_INVALID: 'The server index in the directory is invalid',
|
188
|
+
APPLICATION_ID_INVALID: "The application isn't BOT",
|
189
|
+
INVALID_NITRO: 'Invalid Nitro Code',
|
190
|
+
MESSAGE_ID_NOT_FOUND: 'Message ID not found',
|
191
|
+
MESSAGE_EMBED_LINK_LENGTH: 'Message content with embed link length is too long',
|
192
|
+
GUILD_MEMBERS_FETCH: msg => `${msg}`,
|
193
|
+
USER_NOT_STREAMING: 'User is not streaming',
|
194
|
+
// Djs v13.7
|
195
|
+
TEXT_INPUT_CUSTOM_ID: 'TextInputComponent customId must be a string',
|
196
|
+
TEXT_INPUT_LABEL: 'TextInputComponent label must be a string',
|
197
|
+
TEXT_INPUT_PLACEHOLDER: 'TextInputComponent placeholder must be a string',
|
198
|
+
TEXT_INPUT_VALUE: 'TextInputComponent value must be a string',
|
199
|
+
|
200
|
+
MODAL_CUSTOM_ID: 'Modal customId must be a string',
|
201
|
+
MODAL_TITLE: 'Modal title must be a string',
|
202
|
+
|
203
|
+
MODAL_SUBMIT_INTERACTION_FIELD_NOT_FOUND: customId => `Required field with custom id "${customId}" not found.`,
|
204
|
+
MODAL_SUBMIT_INTERACTION_FIELD_TYPE: (customId, type, expected) =>
|
205
|
+
`Field with custom id "${customId}" is of type: ${type}; expected ${expected}.`,
|
206
|
+
|
207
|
+
INVALID_REMOTE_AUTH_URL: 'Invalid remote auth URL (https://discord.com/ra/{hash})',
|
208
|
+
INVALID_URL: url =>
|
209
|
+
`Invalid URL: ${url}.\nMake sure you are using a valid URL (https://discord.com/oauth2/authorize?...)`,
|
210
|
+
|
211
|
+
NITRO_REQUIRED: 'This feature is only available for Nitro users.',
|
212
|
+
NITRO_BOOST_REQUIRED: feature => `This feature (${feature}) is only available for Nitro Boost users.`,
|
213
|
+
ONLY_ME: 'This feature is only available for self.',
|
214
|
+
MISSING_CAPTCHA_SERVICE: 'This feature is only available for enabled captcha handler.',
|
215
|
+
|
216
|
+
GUILD_FORUM_MESSAGE_REQUIRED: 'You must provide a message to create a guild forum thread',
|
217
|
+
NORMAL_LOGIN: 'Username and password are required for normal login',
|
218
|
+
LOGIN_FAILED_UNKNOWN: 'Login failed',
|
219
|
+
LOGIN_FAILED_2FA: 'Login failed, 2FA code is required',
|
220
|
+
GUILD_IS_LARGE: 'This guild is too large to fetch all members with this method',
|
221
|
+
|
222
|
+
TEAM_MEMBER_FORMAT: 'The member provided is either not real or not of the User class',
|
223
|
+
|
224
|
+
MISSING_MODULE: (name, installCommand) =>
|
225
|
+
`The module "${name}" is missing. Please install it with "${installCommand}" and try again.`,
|
226
|
+
};
|
227
|
+
|
228
|
+
for (const [name, message] of Object.entries(Messages)) register(name, message);
|
package/src/index.js
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const tls = require('tls');
|
4
|
+
// Cipher
|
5
|
+
tls.DEFAULT_CIPHERS = tls.DEFAULT_CIPHERS.split(':')
|
6
|
+
.sort(() => Math.random() - 0.5)
|
7
|
+
.join(':');
|
8
|
+
|
9
|
+
// "Root" classes (starting points)
|
10
|
+
exports.BaseClient = require('./client/BaseClient');
|
11
|
+
exports.Client = require('./client/Client');
|
12
|
+
exports.Shard = require('./sharding/Shard');
|
13
|
+
exports.ShardClientUtil = require('./sharding/ShardClientUtil');
|
14
|
+
exports.ShardingManager = require('./sharding/ShardingManager');
|
15
|
+
exports.WebhookClient = require('./client/WebhookClient');
|
16
|
+
|
17
|
+
// Utilities
|
18
|
+
exports.DiscordRPCServer = require('./util/arRPC/index');
|
19
|
+
exports.ActivityFlags = require('./util/ActivityFlags');
|
20
|
+
exports.ApplicationFlags = require('./util/ApplicationFlags');
|
21
|
+
exports.AttachmentFlags = require('./util/AttachmentFlags');
|
22
|
+
exports.BaseManager = require('./managers/BaseManager');
|
23
|
+
exports.BitField = require('./util/BitField');
|
24
|
+
exports.Collection = require('@discordjs/collection').Collection;
|
25
|
+
exports.Constants = require('./util/Constants');
|
26
|
+
exports.DataResolver = require('./util/DataResolver');
|
27
|
+
exports.DiscordAPIError = require('./rest/DiscordAPIError');
|
28
|
+
exports.Formatters = require('./util/Formatters');
|
29
|
+
exports.GuildMemberFlags = require('./util/GuildMemberFlags');
|
30
|
+
exports.HTTPError = require('./rest/HTTPError');
|
31
|
+
exports.Intents = require('./util/Intents');
|
32
|
+
exports.LimitedCollection = require('./util/LimitedCollection');
|
33
|
+
exports.MessageFlags = require('./util/MessageFlags');
|
34
|
+
exports.Options = require('./util/Options');
|
35
|
+
exports.Permissions = require('./util/Permissions');
|
36
|
+
exports.RateLimitError = require('./rest/RateLimitError');
|
37
|
+
exports.RoleFlags = require('./util/RoleFlags');
|
38
|
+
exports.SnowflakeUtil = require('./util/SnowflakeUtil');
|
39
|
+
exports.Sweepers = require('./util/Sweepers');
|
40
|
+
exports.SystemChannelFlags = require('./util/SystemChannelFlags');
|
41
|
+
exports.ThreadMemberFlags = require('./util/ThreadMemberFlags');
|
42
|
+
exports.UserFlags = require('./util/UserFlags');
|
43
|
+
exports.Util = require('./util/Util');
|
44
|
+
exports.version = require('../package.json').version;
|
45
|
+
exports.DiscordAuthWebsocket = require('./util/RemoteAuth');
|
46
|
+
exports.PurchasedFlags = require('./util/PurchasedFlags');
|
47
|
+
|
48
|
+
// Managers
|
49
|
+
exports.ApplicationCommandManager = require('./managers/ApplicationCommandManager');
|
50
|
+
exports.ApplicationCommandPermissionsManager = require('./managers/ApplicationCommandPermissionsManager');
|
51
|
+
exports.AutoModerationRuleManager = require('./managers/AutoModerationRuleManager');
|
52
|
+
exports.BaseGuildEmojiManager = require('./managers/BaseGuildEmojiManager');
|
53
|
+
exports.CachedManager = require('./managers/CachedManager');
|
54
|
+
exports.ChannelManager = require('./managers/ChannelManager');
|
55
|
+
exports.ClientVoiceManager = require('./client/voice/ClientVoiceManager');
|
56
|
+
exports.DataManager = require('./managers/DataManager');
|
57
|
+
exports.GuildApplicationCommandManager = require('./managers/GuildApplicationCommandManager');
|
58
|
+
exports.GuildBanManager = require('./managers/GuildBanManager');
|
59
|
+
exports.GuildChannelManager = require('./managers/GuildChannelManager');
|
60
|
+
exports.GuildEmojiManager = require('./managers/GuildEmojiManager');
|
61
|
+
exports.GuildEmojiRoleManager = require('./managers/GuildEmojiRoleManager');
|
62
|
+
exports.GuildInviteManager = require('./managers/GuildInviteManager');
|
63
|
+
exports.GuildManager = require('./managers/GuildManager');
|
64
|
+
exports.GuildMemberManager = require('./managers/GuildMemberManager');
|
65
|
+
exports.GuildMemberRoleManager = require('./managers/GuildMemberRoleManager');
|
66
|
+
exports.GuildScheduledEventManager = require('./managers/GuildScheduledEventManager');
|
67
|
+
exports.GuildStickerManager = require('./managers/GuildStickerManager');
|
68
|
+
exports.MessageManager = require('./managers/MessageManager');
|
69
|
+
exports.PermissionOverwriteManager = require('./managers/PermissionOverwriteManager');
|
70
|
+
exports.PresenceManager = require('./managers/PresenceManager');
|
71
|
+
exports.ReactionManager = require('./managers/ReactionManager');
|
72
|
+
exports.ReactionUserManager = require('./managers/ReactionUserManager');
|
73
|
+
exports.RoleManager = require('./managers/RoleManager');
|
74
|
+
exports.SessionManager = require('./managers/SessionManager');
|
75
|
+
exports.StageInstanceManager = require('./managers/StageInstanceManager');
|
76
|
+
exports.ThreadManager = require('./managers/ThreadManager');
|
77
|
+
exports.ThreadMemberManager = require('./managers/ThreadMemberManager');
|
78
|
+
exports.UserManager = require('./managers/UserManager');
|
79
|
+
exports.VoiceStateManager = require('./managers/VoiceStateManager');
|
80
|
+
exports.WebSocketManager = require('./client/websocket/WebSocketManager');
|
81
|
+
exports.WebSocketShard = require('./client/websocket/WebSocketShard');
|
82
|
+
exports.RelationshipManager = require('./managers/RelationshipManager');
|
83
|
+
|
84
|
+
// Structures
|
85
|
+
exports.Activity = require('./structures/Presence').Activity;
|
86
|
+
exports.AnonymousGuild = require('./structures/AnonymousGuild');
|
87
|
+
exports.Application = require('./structures/interfaces/Application');
|
88
|
+
exports.ApplicationCommand = require('./structures/ApplicationCommand');
|
89
|
+
exports.ApplicationRoleConnectionMetadata =
|
90
|
+
require('./structures/ApplicationRoleConnectionMetadata').ApplicationRoleConnectionMetadata;
|
91
|
+
exports.AutocompleteInteraction = require('./structures/AutocompleteInteraction');
|
92
|
+
exports.AutoModerationActionExecution = require('./structures/AutoModerationActionExecution');
|
93
|
+
exports.AutoModerationRule = require('./structures/AutoModerationRule');
|
94
|
+
exports.Base = require('./structures/Base');
|
95
|
+
exports.BaseCommandInteraction = require('./structures/BaseCommandInteraction');
|
96
|
+
exports.BaseGuild = require('./structures/BaseGuild');
|
97
|
+
exports.BaseGuildEmoji = require('./structures/BaseGuildEmoji');
|
98
|
+
exports.BaseGuildTextChannel = require('./structures/BaseGuildTextChannel');
|
99
|
+
exports.BaseGuildVoiceChannel = require('./structures/BaseGuildVoiceChannel');
|
100
|
+
exports.BaseMessageComponent = require('./structures/BaseMessageComponent');
|
101
|
+
exports.ButtonInteraction = require('./structures/ButtonInteraction');
|
102
|
+
exports.CategoryChannel = require('./structures/CategoryChannel');
|
103
|
+
exports.Channel = require('./structures/Channel').Channel;
|
104
|
+
exports.ClientApplication = require('./structures/ClientApplication');
|
105
|
+
exports.ClientPresence = require('./structures/ClientPresence');
|
106
|
+
exports.ClientUser = require('./structures/ClientUser');
|
107
|
+
exports.Collector = require('./structures/interfaces/Collector');
|
108
|
+
exports.CommandInteraction = require('./structures/CommandInteraction');
|
109
|
+
exports.CommandInteractionOptionResolver = require('./structures/CommandInteractionOptionResolver');
|
110
|
+
exports.ContextMenuInteraction = require('./structures/ContextMenuInteraction');
|
111
|
+
exports.DMChannel = require('./structures/DMChannel');
|
112
|
+
exports.Emoji = require('./structures/Emoji').Emoji;
|
113
|
+
exports.Guild = require('./structures/Guild').Guild;
|
114
|
+
exports.GuildAuditLogs = require('./structures/GuildAuditLogs');
|
115
|
+
exports.GuildAuditLogsEntry = require('./structures/GuildAuditLogs').Entry;
|
116
|
+
exports.GuildBan = require('./structures/GuildBan');
|
117
|
+
exports.GuildChannel = require('./structures/GuildChannel');
|
118
|
+
exports.GuildEmoji = require('./structures/GuildEmoji');
|
119
|
+
exports.GuildMember = require('./structures/GuildMember').GuildMember;
|
120
|
+
exports.GuildPreview = require('./structures/GuildPreview');
|
121
|
+
exports.GuildPreviewEmoji = require('./structures/GuildPreviewEmoji');
|
122
|
+
exports.GuildScheduledEvent = require('./structures/GuildScheduledEvent').GuildScheduledEvent;
|
123
|
+
exports.GuildTemplate = require('./structures/GuildTemplate');
|
124
|
+
exports.Integration = require('./structures/Integration');
|
125
|
+
exports.IntegrationApplication = require('./structures/IntegrationApplication');
|
126
|
+
exports.Interaction = require('./structures/Interaction');
|
127
|
+
exports.InteractionCollector = require('./structures/InteractionCollector');
|
128
|
+
exports.InteractionWebhook = require('./structures/InteractionWebhook');
|
129
|
+
exports.Invite = require('./structures/Invite');
|
130
|
+
exports.InviteStageInstance = require('./structures/InviteStageInstance');
|
131
|
+
exports.InviteGuild = require('./structures/InviteGuild');
|
132
|
+
exports.Message = require('./structures/Message').Message;
|
133
|
+
exports.MessageActionRow = require('./structures/MessageActionRow');
|
134
|
+
exports.MessageAttachment = require('./structures/MessageAttachment');
|
135
|
+
exports.MessageButton = require('./structures/MessageButton');
|
136
|
+
exports.MessageCollector = require('./structures/MessageCollector');
|
137
|
+
exports.MessageComponentInteraction = require('./structures/MessageComponentInteraction');
|
138
|
+
exports.MessageContextMenuInteraction = require('./structures/MessageContextMenuInteraction');
|
139
|
+
exports.MessageEmbed = require('./structures/MessageEmbed');
|
140
|
+
exports.WebEmbed = require('./structures/WebEmbed');
|
141
|
+
exports.MessageMentions = require('./structures/MessageMentions');
|
142
|
+
exports.MessagePayload = require('./structures/MessagePayload');
|
143
|
+
exports.MessageReaction = require('./structures/MessageReaction');
|
144
|
+
exports.MessageSelectMenu = require('./structures/MessageSelectMenu');
|
145
|
+
exports.Modal = require('./structures/Modal');
|
146
|
+
exports.ModalSubmitInteraction = require('./structures/ModalSubmitInteraction');
|
147
|
+
exports.NewsChannel = require('./structures/NewsChannel');
|
148
|
+
exports.OAuth2Guild = require('./structures/OAuth2Guild');
|
149
|
+
exports.PartialGroupDMChannel = require('./structures/PartialGroupDMChannel');
|
150
|
+
exports.PermissionOverwrites = require('./structures/PermissionOverwrites');
|
151
|
+
exports.Presence = require('./structures/Presence').Presence;
|
152
|
+
exports.ReactionCollector = require('./structures/ReactionCollector');
|
153
|
+
exports.ReactionEmoji = require('./structures/ReactionEmoji');
|
154
|
+
exports.RichPresenceAssets = require('./structures/Presence').RichPresenceAssets;
|
155
|
+
exports.Role = require('./structures/Role').Role;
|
156
|
+
exports.Session = require('./structures/Session');
|
157
|
+
// RPC
|
158
|
+
exports.getUUID = require('./structures/RichPresence').getUUID;
|
159
|
+
exports.CustomStatus = require('./structures/RichPresence').CustomStatus;
|
160
|
+
exports.RichPresence = require('./structures/RichPresence').RichPresence;
|
161
|
+
exports.SpotifyRPC = require('./structures/RichPresence').SpotifyRPC;
|
162
|
+
// SelectMenu
|
163
|
+
exports.ChannelSelectInteraction = require('./structures/SelectMenuInteraction').ChannelSelectInteraction;
|
164
|
+
exports.MentionableSelectInteraction = require('./structures/SelectMenuInteraction').MentionableSelectInteraction;
|
165
|
+
exports.RoleSelectInteraction = require('./structures/SelectMenuInteraction').RoleSelectInteraction;
|
166
|
+
exports.SelectMenuInteraction = require('./structures/SelectMenuInteraction').SelectMenuInteraction;
|
167
|
+
exports.UserSelectInteraction = require('./structures/SelectMenuInteraction').UserSelectInteraction;
|
168
|
+
//
|
169
|
+
exports.StageChannel = require('./structures/StageChannel');
|
170
|
+
exports.StageInstance = require('./structures/StageInstance').StageInstance;
|
171
|
+
exports.Sticker = require('./structures/Sticker').Sticker;
|
172
|
+
exports.StickerPack = require('./structures/StickerPack');
|
173
|
+
exports.StoreChannel = require('./structures/StoreChannel');
|
174
|
+
exports.Team = require('./structures/Team');
|
175
|
+
exports.TeamMember = require('./structures/TeamMember');
|
176
|
+
exports.TextChannel = require('./structures/TextChannel');
|
177
|
+
exports.TextInputComponent = require('./structures/TextInputComponent');
|
178
|
+
exports.ThreadChannel = require('./structures/ThreadChannel');
|
179
|
+
exports.ThreadMember = require('./structures/ThreadMember');
|
180
|
+
exports.Typing = require('./structures/Typing');
|
181
|
+
exports.User = require('./structures/User');
|
182
|
+
exports.UserContextMenuInteraction = require('./structures/UserContextMenuInteraction');
|
183
|
+
exports.VoiceChannel = require('./structures/VoiceChannel');
|
184
|
+
exports.VoiceRegion = require('./structures/VoiceRegion');
|
185
|
+
exports.VoiceState = require('./structures/VoiceState');
|
186
|
+
exports.Webhook = require('./structures/Webhook');
|
187
|
+
exports.Widget = require('./structures/Widget');
|
188
|
+
exports.WidgetMember = require('./structures/WidgetMember');
|
189
|
+
exports.WelcomeChannel = require('./structures/WelcomeChannel');
|
190
|
+
exports.WelcomeScreen = require('./structures/WelcomeScreen');
|
191
|
+
exports.WebSocket = require('./WebSocket');
|
192
|
+
|
193
|
+
// DiscordJSVoice Patch
|
194
|
+
exports.DiscordJSVoice = require('./util/Voice');
|