mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
fix(guild#createChannel): new channel returning null (#2143)
forgot to return channel.
This commit is contained in:
@@ -72,6 +72,7 @@ class ClientDataManager {
|
||||
if (channel && !already) {
|
||||
if (this.pastReady) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||
this.client.channels.set(channel.id, channel);
|
||||
return channel;
|
||||
} else if (already) {
|
||||
return channel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user