restricted
Replicating the Restricted overwrite but with a Custom error Message. If the user does not have Mod Role and uses the tag outside of the Bot Channel it will: - Redirect the Tag's output and Command Block outputs to the Bot Channel set within the variables. - Ping the user in the Bot Channel with an Error Message. _______________________________________________________ Fill in these variables at the top of the code (REQUIRED) -ModRole The Role ID that can use the tag outside of BotChannel. - Immune to redirect - Immune to Ping BotChannel - The Channel ID to redirect the tag output to, if the user does not have ModRole. ErrorMessage - Error message to display if tag is used outside of Bot Channel and the user doesn't have Mod Role.
Private
Content
6 lines{=():}
{=(ModRole):Put Role ID here}
{=(BotChannel):Put Channel ID here}
{=(ErrorMessage):Put Message Here}
{{all({contains({ModRole}):{user(roleids)}}==false|{contains({BotChannel}):{channel(id)}}==false):redirect:{BotChannel}}}
{all({contains({ModRole}):{user(roleids)}}==false|{contains({BotChannel}):{channel(id)}}==false):{user(mention)}{ErrorMessage}}Raw JSON
{
"id": 1898351,
"created_at": "2023-12-18T21:22:57.000Z",
"tag_name": "restricted",
"nsfw": false,
"owner_id": "602615705015156736",
"uses": 1,
"description": "Replicating the Restricted overwrite but with a Custom error Message.\n \nIf the user does not have Mod Role and uses the tag outside of the Bot Channel it will:\n- Redirect the Tag's output and Command Block outputs to the Bot Channel set within the variables.\n- Ping the user in the Bot Channel with an Error Message.\n\n_______________________________________________________\nFill in these variables at the top of the code (REQUIRED)\n\n-ModRole\nThe Role ID that can use the tag outside of BotChannel. \n- Immune to redirect\n- Immune to Ping\n\nBotChannel\n- The Channel ID to redirect the tag output to, if the user does not have ModRole.\n\nErrorMessage\n- Error message to display if tag is used outside of Bot Channel and the user doesn't have Mod Role.",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1039570200544170025",
"sharer": "602615705015156736",
"content": "{=():}\n{=(ModRole):Put Role ID here}\n{=(BotChannel):Put Channel ID here}\n{=(ErrorMessage):Put Message Here}\n{{all({contains({ModRole}):{user(roleids)}}==false|{contains({BotChannel}):{channel(id)}}==false):redirect:{BotChannel}}}\n{all({contains({ModRole}):{user(roleids)}}==false|{contains({BotChannel}):{channel(id)}}==false):{user(mention)}{ErrorMessage}}",
"embed": "{}",
"last_fetched": "2026-10-20T19:28:38.681Z"
}