mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Consider all members and bans when bot join
This commit is contained in:
parent
948ebb8af3
commit
3186267510
@ -87,6 +87,11 @@ class Titan(discord.Client):
|
|||||||
for channel in guild.channels:
|
for channel in guild.channels:
|
||||||
async for message in self.logs_from(channel, limit=50, reverse=True):
|
async for message in self.logs_from(channel, limit=50, reverse=True):
|
||||||
await self.database.push_message(message)
|
await self.database.push_message(message)
|
||||||
|
for member in guild.members:
|
||||||
|
update_guild_member(member, True, False)
|
||||||
|
banned = self.get_bans(guild)
|
||||||
|
for ban in banned:
|
||||||
|
update_guild_member(ban, False, True)
|
||||||
|
|
||||||
async def on_server_remove(self, guild):
|
async def on_server_remove(self, guild):
|
||||||
await self.database.remove_guild(guild)
|
await self.database.remove_guild(guild)
|
||||||
|
Loading…
Reference in New Issue
Block a user