mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23: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 (channel && !already) {
|
||||||
if (this.pastReady) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
if (this.pastReady) this.client.emit(Constants.Events.CHANNEL_CREATE, channel);
|
||||||
this.client.channels.set(channel.id, channel);
|
this.client.channels.set(channel.id, channel);
|
||||||
|
return channel;
|
||||||
} else if (already) {
|
} else if (already) {
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user