Skip to content

User Permissions

nutmeg edited this page Feb 22, 2023 · 3 revisions

Run Down

Discord+PS has a custom permission system that's simpler to use with aliases for certain permissions

Permission Cache

Permission cache returns an object with true or false for each permission

PSClient.user.permissions.cache(?user);

// or

PSClient.user.permissionCache(?user);

Permission List

Permission list returns an array of every permission a user has

PSClient.user.permissions.list(?user);

// or

PSClient.user.permissionList(?user);

Has Permissions

Has permissions checks if a user has the given permissions
it takes an array and an optional user

PSClient.user.permissions.has(array, ?user)

// or

PSClient.user.hasPermissions(array, ?user);

Permission List

If you want to learn more about all the current permissions take a visit to the permissions list

Clone this wiki locally