Skip to main content

Overview

,restrictcommand lets you gate individual commands behind roles. Only members with an allowed role can run the command - useful alongside fake permissions when you want fine-grained access control.
Server owner and fake owner bypass all restrictions.

Commands

You cannot restrict the restrictcommand command itself.

How it works

When a command is restricted, adore checks if the user has any of the roles assigned to that command. If not, the command is blocked. Restrictions work with command aliases - if you alias b to ban, restricting ban also applies to the alias.

Example setup