v5.0.0
$modifyRolePerms
This function allows the bot to modify the given roles permissions
Fields
This function has 2 required fields
  1. 1.
    Role ID (Required)
  2. 2.
    Permission 1 (Required)
  3. 3.
    Permission 2 (Optional)
  4. 4.
    Etc
Raw Usage: $modifyRolePerms[roleID;permission1;permission2 (optional);etc]
Options
  • Role ID - The role we're modifying the permissions
  • Permission(s) - The permissions that are being modified.
  • +perm = Allow the permission
  • -perm = Deny the permission
  • +/-all - Allows or denies all the permissions
Usage
Allowing a permission
1
bot.command({
2
name: "modifyRolePerms",
3
code: `$modifyRolePerms[$mentionedRoles[1];+admin]`
4
})
Copied!
Denying a permission
1
bot.command({
2
name: "modifyRolePerms",
3
code: `$modifyRolePerms[$mentionedRoles[1];-admin]`
4
})
Copied!
Allowing all permissions
1
bot.command({
2
name: "modifyRolePerms",
3
code: `$modifyRolePerms[$mentionedRoles[1];+all]`
4
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub