mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Read message history being disabled might interfere with reading channel messages
This commit is contained in:
parent
dcab78e0cc
commit
2493cd80bc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user