$hasPerms

Checks if user has all of the given permissions. Returns true or false.

Usage:

$hasPerms[userID;perm1;perm2;...]
  1. userID - User you want to check for permissions.
  2. perm N - You can add as many permissions as needed. The available permissions are here: Permissions List.

Example

Using $hasPerms

How to use $hasPerms. Keep in mind that only if the user does have all of listed permissions, true will be returned.

User04/23/2025
!!exec $hasPerms[$authorID;sendmessages]
Custom Command Bot 04/23/2025
true

Suggestion

To make code stop if the user doesn't have the needed permission, you can check out $onlyIf. For multiple actions, check $if.

Function difficulty: Easy
Tags: permission management