index.js (4623B)
1 'use strict'; 2 3 const Util = require('./util/Util'); 4 5 module.exports = { 6 // "Root" classes (starting points) 7 BaseClient: require('./client/BaseClient'), 8 Client: require('./client/Client'), 9 Shard: require('./sharding/Shard'), 10 ShardClientUtil: require('./sharding/ShardClientUtil'), 11 ShardingManager: require('./sharding/ShardingManager'), 12 WebhookClient: require('./client/WebhookClient'), 13 14 // Utilities 15 ActivityFlags: require('./util/ActivityFlags'), 16 BitField: require('./util/BitField'), 17 Collection: require('./util/Collection'), 18 Constants: require('./util/Constants'), 19 DataResolver: require('./util/DataResolver'), 20 BaseManager: require('./managers/BaseManager'), 21 DiscordAPIError: require('./rest/DiscordAPIError'), 22 HTTPError: require('./rest/HTTPError'), 23 MessageFlags: require('./util/MessageFlags'), 24 Intents: require('./util/Intents'), 25 Permissions: require('./util/Permissions'), 26 Speaking: require('./util/Speaking'), 27 Snowflake: require('./util/Snowflake'), 28 SnowflakeUtil: require('./util/Snowflake'), 29 Structures: require('./util/Structures'), 30 SystemChannelFlags: require('./util/SystemChannelFlags'), 31 UserFlags: require('./util/UserFlags'), 32 Util: Util, 33 version: require('../package.json').version, 34 35 // Managers 36 ChannelManager: require('./managers/ChannelManager'), 37 GuildChannelManager: require('./managers/GuildChannelManager'), 38 GuildEmojiManager: require('./managers/GuildEmojiManager'), 39 GuildEmojiRoleManager: require('./managers/GuildEmojiRoleManager'), 40 GuildMemberManager: require('./managers/GuildMemberManager'), 41 GuildMemberRoleManager: require('./managers/GuildMemberRoleManager'), 42 GuildManager: require('./managers/GuildManager'), 43 ReactionUserManager: require('./managers/ReactionUserManager'), 44 MessageManager: require('./managers/MessageManager'), 45 PresenceManager: require('./managers/PresenceManager'), 46 RoleManager: require('./managers/RoleManager'), 47 UserManager: require('./managers/UserManager'), 48 49 // Shortcuts to Util methods 50 discordSort: Util.discordSort, 51 escapeMarkdown: Util.escapeMarkdown, 52 fetchRecommendedShards: Util.fetchRecommendedShards, 53 resolveColor: Util.resolveColor, 54 resolveString: Util.resolveString, 55 splitMessage: Util.splitMessage, 56 57 // Structures 58 Base: require('./structures/Base'), 59 Activity: require('./structures/Presence').Activity, 60 APIMessage: require('./structures/APIMessage'), 61 BaseGuildEmoji: require('./structures/BaseGuildEmoji'), 62 CategoryChannel: require('./structures/CategoryChannel'), 63 Channel: require('./structures/Channel'), 64 ClientApplication: require('./structures/ClientApplication'), 65 get ClientUser() { 66 // This is a getter so that it properly extends any custom User class 67 return require('./structures/ClientUser'); 68 }, 69 Collector: require('./structures/interfaces/Collector'), 70 DMChannel: require('./structures/DMChannel'), 71 Emoji: require('./structures/Emoji'), 72 Guild: require('./structures/Guild'), 73 GuildAuditLogs: require('./structures/GuildAuditLogs'), 74 GuildChannel: require('./structures/GuildChannel'), 75 GuildEmoji: require('./structures/GuildEmoji'), 76 GuildMember: require('./structures/GuildMember'), 77 GuildPreview: require('./structures/GuildPreview'), 78 Integration: require('./structures/Integration'), 79 Invite: require('./structures/Invite'), 80 Message: require('./structures/Message'), 81 MessageAttachment: require('./structures/MessageAttachment'), 82 MessageCollector: require('./structures/MessageCollector'), 83 MessageEmbed: require('./structures/MessageEmbed'), 84 MessageMentions: require('./structures/MessageMentions'), 85 MessageReaction: require('./structures/MessageReaction'), 86 NewsChannel: require('./structures/NewsChannel'), 87 PermissionOverwrites: require('./structures/PermissionOverwrites'), 88 Presence: require('./structures/Presence').Presence, 89 ClientPresence: require('./structures/ClientPresence'), 90 ReactionCollector: require('./structures/ReactionCollector'), 91 ReactionEmoji: require('./structures/ReactionEmoji'), 92 RichPresenceAssets: require('./structures/Presence').RichPresenceAssets, 93 Role: require('./structures/Role'), 94 StoreChannel: require('./structures/StoreChannel'), 95 Team: require('./structures/Team'), 96 TeamMember: require('./structures/TeamMember'), 97 TextChannel: require('./structures/TextChannel'), 98 User: require('./structures/User'), 99 VoiceChannel: require('./structures/VoiceChannel'), 100 VoiceRegion: require('./structures/VoiceRegion'), 101 VoiceState: require('./structures/VoiceState'), 102 Webhook: require('./structures/Webhook'), 103 104 WebSocket: require('./WebSocket'), 105 };