mirror of
https://github.com/danbulant/discord.js
synced 2026-06-04 23:31:04 +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 (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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue