managerole
Make sure to change the variables at the top of the tag. The error messages will work as-is, but the role variables will need to be changed. • invalidboolerror will be sent if the first argument is invalid. • permissionerror will be sent if the user doesn't have the required role. Set this to blank and no message will be sent. • rolerequired is the role that will be required in order to run this command. You can use a role name or a role ID, but ID is recommended. • actionrole is the role that will be given/removed. You can use a role name or a role ID, but ID is recommended.
Sharedunrated
Content
32 lines{=(COMMENT):Variables to change. Meanings below.}
{=(invalidboolerror):Invalid input for first argument: boolean expected. Correct usage: `managerole <add|remove> [duration]`}
{=(permissionerror):You do not have permission to execute this command.}
{=(rolerequired):CHANGE THIS VALUE}
{=(actionrole):CHANGE THIS VALUE}
{=(COMMENT):VARIABLE MEANINGS}
{=(COMMENT):invalidboolerror will be sent if the first argument is invalid.}
{=(COMMENT):permissionerror will be sent if the user doesn't have the required role. Set this to blank and no message will be sent.}
{=(COMMENT):rolerequired is the role that will be required in order to run this command. You can use a role name or a role ID, but ID is recommended.}
{=(COMMENT):actionrole is the role that will be given/removed. You can use a role name or a role ID, but ID is recommended.}
{=(COMMENT):WARNING: CHANGING ANYTHING BELOW THIS LINE COULD CAUSE ISSUES. BE CAREFUL.}
{=(COMMENT):Restrict the command to users with the role specified. If they have the role, override command permissions.}
{override}{require({permissionerror}):{rolerequired}}
{=(COMMENT):A filter to allow different kinds of booleans as the first argument.}
{=(on):{contains({lower:{args(1)}}):add on true enabled}}
{=(off):{contains({lower:{args(1)}}):remove off false disabled}}
{=(COMMENT):This sets a variable to tell the next block whether to add or remove the role. This is used in the next step.}
{=(temp):{if({on}==true):+|-}}
{=(perm):{if({on}==true):add|remove}}
{=(COMMENT):This sets the command to run either 'temprole' or 'role' depending on if there's a second argument.}
{=(str):{if(=={list(1):{join(~):{args}}}):role {perm} {user(id)} {actionrole}|temprole custom {user(id)} {args(2)} {temp}{actionrole}}}
{=(COMMENT):If there's an input error, send the error message. If not, run the command above.}
{{if({on}=={off}):invalidboolerror|c:{str}}}Raw JSON
{
"id": 393146,
"created_at": "2020-10-26T06:49:22.000Z",
"tag_name": "managerole",
"nsfw": false,
"owner_id": "489484338514100234",
"uses": 0,
"description": "Make sure to change the variables at the top of the tag. The error messages will work as-is, but the role variables will need to be changed.\n\n• invalidboolerror will be sent if the first argument is invalid.\n• permissionerror will be sent if the user doesn't have the required role. Set this to blank and no message will be sent.\n• rolerequired is the role that will be required in order to run this command. You can use a role name or a role ID, but ID is recommended.\n• actionrole is the role that will be given/removed. You can use a role name or a role ID, but ID is recommended.",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "636003276881657857",
"sharer": "489484338514100234",
"content": "{=(COMMENT):Variables to change. Meanings below.}\n\n{=(invalidboolerror):Invalid input for first argument: boolean expected. Correct usage: `managerole <add|remove> [duration]`}\n{=(permissionerror):You do not have permission to execute this command.}\n{=(rolerequired):CHANGE THIS VALUE}\n{=(actionrole):CHANGE THIS VALUE}\n\n{=(COMMENT):VARIABLE MEANINGS}\n{=(COMMENT):invalidboolerror will be sent if the first argument is invalid.}\n{=(COMMENT):permissionerror will be sent if the user doesn't have the required role. Set this to blank and no message will be sent.}\n{=(COMMENT):rolerequired is the role that will be required in order to run this command. You can use a role name or a role ID, but ID is recommended.}\n{=(COMMENT):actionrole is the role that will be given/removed. You can use a role name or a role ID, but ID is recommended.}\n\n{=(COMMENT):WARNING: CHANGING ANYTHING BELOW THIS LINE COULD CAUSE ISSUES. BE CAREFUL.}\n\n{=(COMMENT):Restrict the command to users with the role specified. If they have the role, override command permissions.}\n{override}{require({permissionerror}):{rolerequired}}\n\n{=(COMMENT):A filter to allow different kinds of booleans as the first argument.}\n{=(on):{contains({lower:{args(1)}}):add on true enabled}}\n{=(off):{contains({lower:{args(1)}}):remove off false disabled}}\n\n{=(COMMENT):This sets a variable to tell the next block whether to add or remove the role. This is used in the next step.}\n\n{=(temp):{if({on}==true):+|-}}\n{=(perm):{if({on}==true):add|remove}}\n\n{=(COMMENT):This sets the command to run either 'temprole' or 'role' depending on if there's a second argument.}\n{=(str):{if(=={list(1):{join(~):{args}}}):role {perm} {user(id)} {actionrole}|temprole custom {user(id)} {args(2)} {temp}{actionrole}}}\n\n{=(COMMENT):If there's an input error, send the error message. If not, run the command above.}\n{{if({on}=={off}):invalidboolerror|c:{str}}}",
"embed": "{}",
"last_fetched": "2026-10-20T22:53:43.526Z"
}