mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Gateway v6 support
This commit is contained in:
@@ -134,7 +134,7 @@ var Server = (function (_Equality) {
|
||||
});
|
||||
} else {
|
||||
data.channels.forEach(function (dataChannel) {
|
||||
if (dataChannel.type === "text") {
|
||||
if (dataChannel.type === 0) {
|
||||
_this.channels.add(client.internal.channels.add(new _TextChannel2["default"](dataChannel, client, _this)));
|
||||
} else {
|
||||
_this.channels.add(client.internal.channels.add(new _VoiceChannel2["default"](dataChannel, client, _this)));
|
||||
|
||||
Reference in New Issue
Block a user