mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Gateway v6 support
This commit is contained in:
@@ -88,7 +88,7 @@ export default class Server extends Equality {
|
||||
data.channels.forEach((channel) => this.channels.add(channel));
|
||||
} else {
|
||||
data.channels.forEach((dataChannel) => {
|
||||
if (dataChannel.type === "text") {
|
||||
if (dataChannel.type === 0) {
|
||||
this.channels.add(client.internal.channels.add(new TextChannel(dataChannel, client, this)));
|
||||
} else {
|
||||
this.channels.add(client.internal.channels.add(new VoiceChannel(dataChannel, client, this)));
|
||||
|
||||
Reference in New Issue
Block a user