mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Set default fallback if defaultchannel query parameter is locked for the user
This commit is contained in:
@ -314,6 +314,9 @@
|
|||||||
}
|
}
|
||||||
for (var i = 0; i < guildchannels.length; i++) {
|
for (var i = 0; i < guildchannels.length; i++) {
|
||||||
if (guildchannels[i].channel.id == defaultChannel) {
|
if (guildchannels[i].channel.id == defaultChannel) {
|
||||||
|
if (!guildchannels[i].read) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
selected_channel = defaultChannel;
|
selected_channel = defaultChannel;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user