Fixed permission check #398

Merged
edraft merged 2 commits from dev into master 2023-10-02 19:02:31 +02:00

View File

@ -50,10 +50,8 @@ class PermissionService(PermissionServiceABC):
return member is not None and member in self.get_admins(member.guild.id)
def is_member_moderator(self, member: discord.Member) -> bool:
return (
member is not None
and member in self.get_admins(member.guild.id)
or member in self.get_moderators(member.guild.id)
return member is not None and (
member in self.get_admins(member.guild.id) or member in self.get_moderators(member.guild.id)
)
def is_member_technician(self, member: discord.Member) -> bool: