Resolve getting channel type bug

This commit is contained in:
Jeremy Zhang 2021-08-11 15:45:14 -07:00
parent cf79ddcde1
commit 281715ab9f

View File

@ -843,7 +843,7 @@ var passedCookieTest = true; // If passed cross origin test
}
for (var i = 0; i < guildchannels.length; i++) {
if (guildchannels[i].channel.id == defaultChannel) {
if (!guildchannels[i].read || guildchannels[i].type != "text") {
if (!guildchannels[i].read || guildchannels[i].channel.type != "text") {
return;
}
selected_channel = defaultChannel;