Make server lock work again (#3815)

This commit is contained in:
jack1142 2020-05-01 18:29:57 +02:00 committed by GitHub
parent f280eea788
commit 0c94ce6cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -467,6 +467,7 @@ class Admin(commands.Cog):
await ctx.send(_("The bot is now serverlocked."))
# region Event Handlers
@commands.Cog.listener()
async def on_guild_join(self, guild: discord.Guild):
if await self.config.serverlocked():
await guild.leave()