v5.0.0
$hasAnyPerm
Checks if the user has at least one of the required perms
This functionw ill check if the user has at least one of the specified perms inside of the function.
Raw usage: $hasAnyPerm[perm1;perm2;...] or $hasAnyPerm[User ID;perm1;perm2;...]
Example:
1
bot.command({
2
name: "hasperms",
3
code: `
4
$hasAnyPerm[addreactions;sendmessages;manageserver]
5
`
6
})
Copied!
The bot will reply with true if the user has at least one of the 3 perms we requested, in this case addreactions, sendmessages or manageserver.
Last modified 1mo ago
Copy link
Edit on GitHub