Closed ghost closed 5 years ago
How can I check if a user has a certain permission (for example, "ADMINISTRATOR")?
If you have a member, you can simply do member.hasPermission(.administrator). You can find a list of permissions at https://azoy.github.io/Sword
member.hasPermission(.administrator)
How can I check if a user has a certain permission (for example, "ADMINISTRATOR")?