mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fix inconsistency with Channel Creation: CustomStructures (#2121)
* Fix inconsistancy with Channel Creation * Because static get is a function, it thinks we are create a new instance based on that function, rather than the returned class...
This commit is contained in:
committed by
Schuyler Cebulskie
parent
f3817e328b
commit
dcf48e2225
@@ -61,8 +61,12 @@ class Structures {
|
||||
}
|
||||
|
||||
const structures = {
|
||||
Channel: require('../structures/Channel'),
|
||||
Emoji: require('../structures/Emoji'),
|
||||
DMChannel: require('../structures/DMChannel'),
|
||||
GroupDMChannel: require('../structures/GroupDMChannel'),
|
||||
TextChannel: require('../structures/TextChannel'),
|
||||
VoiceChannel: require('../structures/VoiceChannel'),
|
||||
CategoryChannel: require('../structures/CategoryChannel'),
|
||||
GuildChannel: require('../structures/GuildChannel'),
|
||||
GuildMember: require('../structures/GuildMember'),
|
||||
Guild: require('../structures/Guild'),
|
||||
|
||||
Reference in New Issue
Block a user