mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +01:00
Leave server if no admin permission
This commit is contained in:
parent
9b4eec327d
commit
84346229b5
@ -91,6 +91,9 @@ class Titan(discord.Client):
|
||||
await self.database.delete_message(message)
|
||||
|
||||
async def on_server_join(self, guild):
|
||||
if not guild.me.server_permissions.administrator:
|
||||
self.leave_server(guild)
|
||||
|
||||
await self.database.update_guild(guild)
|
||||
for channel in guild.channels:
|
||||
async for message in self.logs_from(channel, limit=50, reverse=True):
|
||||
|
Loading…
Reference in New Issue
Block a user