Set default fallback if defaultchannel query parameter is locked for the user

This commit is contained in:
Jeremy Zhang 2017-08-09 02:07:13 +00:00
parent 08a90c8a51
commit 0ece2b56e7

View File

@ -314,6 +314,9 @@
}
for (var i = 0; i < guildchannels.length; i++) {
if (guildchannels[i].channel.id == defaultChannel) {
if (!guildchannels[i].read) {
return;
}
selected_channel = defaultChannel;
return;
}