mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-04 15:57:02 +01:00 
			
		
		
		
	Disallow none target
This commit is contained in:
		@@ -194,6 +194,8 @@ def get_channels_list(guildchannels):
 | 
				
			|||||||
            overwrites = []
 | 
					            overwrites = []
 | 
				
			||||||
            isTextChannel = isinstance(channel, discord.channel.TextChannel)
 | 
					            isTextChannel = isinstance(channel, discord.channel.TextChannel)
 | 
				
			||||||
            for target, overwrite in channel.overwrites:
 | 
					            for target, overwrite in channel.overwrites:
 | 
				
			||||||
 | 
					                if not target:
 | 
				
			||||||
 | 
					                    continue
 | 
				
			||||||
                if isinstance(target, discord.Role):
 | 
					                if isinstance(target, discord.Role):
 | 
				
			||||||
                    type = "role"
 | 
					                    type = "role"
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user