,role
Add or remove a role from a member.
How to use it
Type it in any channel where the bot can read messages. The prefix is , on this server and can be changed with ,prefixes.
,role <member> [role]
,role @User @Role,role all @RoleArguments
Square brackets are optional, angle brackets are required — the same legend ,help role prints in Discord.
| Parameter | Kind | What it takes |
|---|---|---|
member | required | a member mention, id or username |
role | optional | a role mention, name or id |
Before you run it
What the command itself checks before it does anything, read from the src/commands/moderation/role.js source.
- Permissions
- Administrator Ban Members Kick Members Manage Channels Manage Roles Manage Server Mention Everyone
- Reads
- member mentions
- Replies with
- a Components V2 panel
- Cooldown
- 5s per member, per server
Every subcommand
Call the command with no argument inside Discord and the bot draws one page per subcommand, exactly like this.
| Subcommand | What it does |
|---|---|
,role all(role) ,role all @Role | add a role to every member |
,role humans(role) ,role humans @Role | add a role to every human member |
,role bots(role) ,role bots @Role | add a role to every bot |
,role removeall(role) ,role removeall @Role | remove a role from every member |
,role removehumans(role) ,role removehumans @Role | remove a role from every human member |
,role removebots(role) ,role removebots @Role | remove a role from every bot |
,role cancel | cancel the running mass-role task |
,role status | show the progress of the running task |
In Discord
What a member sees when they run it. The reply is sent as a Components V2 panel on the server's accent colour, paginated when it is long.
More moderation commands
Commands that usually get used alongside ,role.
Ready to put bleh in your server?
Add it in a couple of clicks, run ,setup, then fine-tune everything from the dashboard.