roleassignmentvariables
Private
Content
4 lines{delete}
{=( ):{ }}
{=(b):{ (1)}}
{=(d):{ (2)}}Embed
1 line{"color": 5198940, "title": "Role Assignment Variables", "fields": [{"name": "Example A", "value": "```**{b}user{d}** {b}if({b}role(is_added){d}==true):added|removed{d} the **{b}role(mention){d}** role for {b}target(mention){d}.```\nThis sends the following message to the target channel you selected:\n> **Server Moderator Nickname** added the <@&579428617143189535> role for <@235148962103951360>.", "inline": false}, {"name": "Example B", "value": "```{b}=():{d}\n{b}{b}if({b}role(is_added){d}==false):c:role add {b}target(id){d} 1234567890{d}{d}```\nThis adds a different role when a user *loses* the role selected in the Role Whitelist.\n-# If you're confused by the empty variable at the top, run `!tips blank` in <#456625369974308866> to learn more. ", "inline": false}, {"name": "", "value": "", "inline": false}], "description": "Role Assignment triggers can use the `{b}role{d}`, `{b}target{d}`, and `{b}user{d}` blocks to get information about the __role__ that was added or removed, the __target__ who got/lost the role, and the __user__ who updated the target's role.\n\nTo access a role block's property, you specify the property name as the parameter, such as `{b}role(mention){d}`. Possible role properties are:\n> **mention**: the role's mention.\n> **position**: the role's position in the server role hierarchy.\n> **id**: the role ID.\n> **name**: the role's display name.\n> **is_added**: returns true if the role was added, false if it was removed.\n> **has_elevated_perms**: returns true if the role has elevated permissions, false otherwise.\n\n-# Role Assignment triggers can also use all other TagScript valid in other trigger types. [See the documentation](<https://docs.carl.gg/#/tagstriggers>)."}Raw JSON
{
"id": 2646511,
"created_at": "2026-05-29T23:50:20.000Z",
"tag_name": "roleassignmentvariables",
"nsfw": false,
"owner_id": "539341919424086016",
"uses": 29,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "186980582863929345",
"sharer": "602615705015156736",
"content": "{delete}\n{=( ):{ }}\n{=(b):{ (1)}}\n{=(d):{ (2)}}",
"embed": "{\"color\": 5198940, \"title\": \"Role Assignment Variables\", \"fields\": [{\"name\": \"Example A\", \"value\": \"```**{b}user{d}** {b}if({b}role(is_added){d}==true):added|removed{d} the **{b}role(mention){d}** role for {b}target(mention){d}.```\\nThis sends the following message to the target channel you selected:\\n> **Server Moderator Nickname** added the <@&579428617143189535> role for <@235148962103951360>.\", \"inline\": false}, {\"name\": \"Example B\", \"value\": \"```{b}=():{d}\\n{b}{b}if({b}role(is_added){d}==false):c:role add {b}target(id){d} 1234567890{d}{d}```\\nThis adds a different role when a user *loses* the role selected in the Role Whitelist.\\n-# If you're confused by the empty variable at the top, run `!tips blank` in <#456625369974308866> to learn more. \", \"inline\": false}, {\"name\": \"\", \"value\": \"\", \"inline\": false}], \"description\": \"Role Assignment triggers can use the `{b}role{d}`, `{b}target{d}`, and `{b}user{d}` blocks to get information about the __role__ that was added or removed, the __target__ who got/lost the role, and the __user__ who updated the target's role.\\n\\nTo access a role block's property, you specify the property name as the parameter, such as `{b}role(mention){d}`. Possible role properties are:\\n> **mention**: the role's mention.\\n> **position**: the role's position in the server role hierarchy.\\n> **id**: the role ID.\\n> **name**: the role's display name.\\n> **is_added**: returns true if the role was added, false if it was removed.\\n> **has_elevated_perms**: returns true if the role has elevated permissions, false otherwise.\\n\\n-# Role Assignment triggers can also use all other TagScript valid in other trigger types. [See the documentation](<https://docs.carl.gg/#/tagstriggers>).\"}",
"last_fetched": "2026-10-24T01:08:41.802Z"
}