fix(guild#createChannel): new channel returning null (#2143)

forgot to return channel.
This commit is contained in:
Isabella
2017-12-03 22:37:51 -06:00
committed by Crawl
parent 6a222ec6e9
commit fb6d14d099

View File

@@ -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;
}