fix: remove GuildChannel fallback, and remove GuildChannel as extendable (#3165)

* remake pr

* typings
This commit is contained in:
bdistin
2019-04-03 16:02:19 -05:00
committed by SpaceEEC
parent 089f65fd2a
commit bb92289e45
4 changed files with 2 additions and 8 deletions

View File

@@ -116,12 +116,8 @@ class Channel extends Base {
channel = new CategoryChannel(guild, data);
break;
}
default: {
const GuildChannel = Structures.get('GuildChannel');
channel = new GuildChannel(guild, data);
}
}
guild.channels.set(channel.id, channel);
if (channel) guild.channels.set(channel.id, channel);
}
}
return channel;