mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Read message history being disabled might interfere with reading channel messages
This commit is contained in:
		@@ -123,7 +123,8 @@ class Titan(discord.Client):
 | 
			
		||||
            for ban in banned:
 | 
			
		||||
                await self.database.update_guild_member(ban, False, True)
 | 
			
		||||
        for channel in guild.channels:
 | 
			
		||||
            if not channel.permissions_for(channel.server.me).read_messages:
 | 
			
		||||
            chanperm = channel.permissions_for(channel.server.me)
 | 
			
		||||
            if not chanperm.read_messages or not chanperm.read_message_history:
 | 
			
		||||
                continue
 | 
			
		||||
            async for message in self.logs_from(channel, limit=50, reverse=True):
 | 
			
		||||
                await self.database.push_message(message)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user