Restrict a command to certain roles

Every command Bond builds can be limited to specific roles or a Discord permission, so staff commands stay staff-only.

You type this

@Bond Make the /warn command only usable by the Mod role

Bond reads your server, works out what needs doing, and shows you what it is about to change before it changes anything.

How to set it up

  1. Add Bond to your server — one click, no setup wizard.
  2. Mention @Bond in any channel and describe what you want.
  3. Approve the actions it proposes. You can allow something once, allow it always, or say no.

What it uses under the hood

  • create_custom_command

    Create a custom slash command for this server - the supported way to give a server its own command like /rank, /ticket or /daily.

  • list_custom_commands

    List every custom slash command this server has, with its kind, enabled state, Discord registration status and usage counts.

  • get_custom_command

    Get the full definition of one custom slash command: its body, options, access restrictions and sync state.

  • update_custom_command

    Update an existing custom slash command's description, body, options, access restrictions, ephemeral setting or enabled state.

  • delete_custom_command

    Delete a custom slash command from this server and unregister it from Discord.

  • list_roles

    List all roles in the Discord server.

  • get_role

    Look up a single role by its ID or exact name.

  • create_role

    Create a role with permissions, display settings, icon or Unicode emoji, and a solid, gradient (two-color), or holographic (three-color) color.

  • delete_role

    Delete a role from the Discord server.

  • assign_role

    Assign a role to a member in the Discord server.

  • remove_role

    Remove a role from a member in the Discord server.

All custom slash commands toolsAll roles & permissions tools

Related