Skip to content

Commit

Permalink
[Captcha] fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 25, 2023
1 parent 9c86688 commit 903088c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions captcha/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ async def on_member_join(self, member: discord.Member) -> None:
return
if (
not member.guild.me.guild_permissions.kick_members
or member.guild.me.guild_permissions.manage_roles
or member.guild.me.guild_permissions.embed_links
or member.guild.me.guild_permissions.attach_files
or not member.guild.me.guild_permissions.manage_roles
or not member.guild.me.guild_permissions.embed_links
or not member.guild.me.guild_permissions.attach_files
):
await self.config.guild(member.guild).toggle.set(False)
log.info(f"Disabled captcha verification due to missing permissions.")
Expand Down

0 comments on commit 903088c

Please sign in to comment.