mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(guild#createChannel): new channel returning null (#2143)
forgot to return channel.
This commit is contained in:
parent
6a222ec6e9
commit
fb6d14d099
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue