Fixed permission check
Some checks reported warnings
Deploy dev on push / on-push-deploy_sh-edraft (push) Has been cancelled
Some checks reported warnings
Deploy dev on push / on-push-deploy_sh-edraft (push) Has been cancelled
This commit is contained in:
parent
5c87a7a919
commit
0d6373b9f6
@ -50,11 +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:
|
||||
config = self._technician_configs.get_technician_config()
|
||||
|
Loading…
Reference in New Issue
Block a user