-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ESModules): importing for esm modules (#3998)
* fix: importing for esm modules * style: use single quotes * refactor: remove 'use strict'
- Loading branch information
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ deploy/deploy_key.pub | |
# Miscellaneous | ||
.tmp/ | ||
.vscode/ | ||
.idea/ | ||
docs/docs.json | ||
typings/index.js | ||
webpack/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import Discord from '../src/index.js'; | ||
|
||
export default Discord; | ||
|
||
export const { | ||
BaseClient, | ||
Client, | ||
Shard, | ||
ShardClientUtil, | ||
ShardingManager, | ||
WebhookClient, | ||
ActivityFlags, | ||
BitField, | ||
Collection, | ||
Constants, | ||
DataResolver, | ||
BaseManager, | ||
DiscordAPIError, | ||
HTTPError, | ||
MessageFlags, | ||
Intents, | ||
Permissions, | ||
Speaking, | ||
Snowflake, | ||
SnowflakeUtil, | ||
Structures, | ||
SystemChannelFlags, | ||
Util, | ||
version, | ||
ChannelManager, | ||
GuildChannelManager, | ||
GuildEmojiManager, | ||
GuildEmojiRoleManager, | ||
GuildMemberManager, | ||
GuildMemberRoleManager, | ||
GuildManager, | ||
ReactionUserManager, | ||
MessageManager, | ||
PresenceManager, | ||
RoleManager, | ||
UserManager, | ||
discordSort, | ||
escapeMarkdown, | ||
fetchRecommendedShards, | ||
resolveColor, | ||
resolveString, | ||
splitMessage, | ||
Base, | ||
Activity, | ||
APIMessage, | ||
CategoryChannel, | ||
Channel, | ||
ClientApplication, | ||
ClientUser, | ||
Collector, | ||
DMChannel, | ||
Emoji, | ||
Guild, | ||
GuildAuditLogs, | ||
GuildChannel, | ||
GuildEmoji, | ||
GuildMember, | ||
Integration, | ||
Invite, | ||
Message, | ||
MessageAttachment, | ||
MessageCollector, | ||
MessageEmbed, | ||
MessageMentions, | ||
MessageReaction, | ||
NewsChannel, | ||
PermissionOverwrites, | ||
Presence, | ||
ClientPresence, | ||
ReactionCollector, | ||
ReactionEmoji, | ||
RichPresenceAssets, | ||
Role, | ||
StoreChannel, | ||
Team, | ||
TeamMember, | ||
TextChannel, | ||
User, | ||
VoiceChannel, | ||
VoiceRegion, | ||
VoiceState, | ||
Webhook, | ||
WebSocket | ||
} = Discord; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters