Entity Info
memberPerms
$memberPerms
Returns the list of effective permissions of the member on the server. Equivalent to $userPerms.
Syntax
$memberPerms
$memberPerms
The function $memberPerms returns the list of effective permissions of the member on the current server. It is equivalent to $userPerms.
Syntax
$memberPerms
Return Value
- Type : List of permission names, separated by commas
- Example:
SendMessages, ReadMessageHistory, AddReactions, ManageMessages
Behavior
$memberPermstakes no arguments.- Returns the combined permissions of all roles of the member, including channel overrides.
- Functionally identical to
$userPermsfor the triggering user.
Examples
Display permissions
$title[Permissions of $memberNick]
$description[
**Permissions of the member:**
$memberPerms
]
$color[#5865F2]
$sendMessage[]
Moderation command
$if[$checkContains[$memberPerms;KickMembers]==true]
$kick[$mentioned]
$sendMessage[<@$mentioned> was kicked.]
$else
$sendMessage[KickMembers permission required.]
$endif
Notes
$memberPermsand$userPermsare interchangeable.- Permission names are in English (matching the Discord API nomenclature).
- For a simple check of administrator status, use
$isAdmin.