How to make a slash command only useable by a specific role?

Yeah erm, I don’t want to keep having to use and if statement for this under the actual command block, is there another way?

Don’t think so, you’ll need to use an if statement whether you’re checking a database row for info you set for a user or if you’re using the get member block.

Add other slash command permissions has some info on why this isn’t a feature (yet).

You could also consider making a custom block that checks for roles if you find it annoying having to put the same blocks in lots of different flows.

you could make it into a custom block with only user id and role id inputs, so it will be easy and quick to use in the future.

Go to your server settings and then go to the Integrations tab and click on your bot. Then you can change each command

1 Like