mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Resolve getting channel type bug
This commit is contained in:
parent
cf79ddcde1
commit
281715ab9f
@ -843,7 +843,7 @@ var passedCookieTest = true; // If passed cross origin test
|
|||||||
}
|
}
|
||||||
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 || guildchannels[i].type != "text") {
|
if (!guildchannels[i].read || guildchannels[i].channel.type != "text") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
selected_channel = defaultChannel;
|
selected_channel = defaultChannel;
|
||||||
|
Loading…
Reference in New Issue
Block a user