mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01: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