sfwmode

I created this as a way to customize the "rank" command. This version I'm sharing is a "safe for work" mode. But you can change the text/images/role very easily to best fit your needs! This version uses the text, and image, and footer. see comments in the tag for further instructions on which each variable does. You can obviously remove a portion if you want, or change where the text is displayed by moving the variable names around in the embed. *Please note you have to add a role to the rank system by using the command: !addrank Rolename

Sharedunrated

Content

22 lines
{=(comment): The silence block silences the default rank command output. Replace the role in the rank block with your chosen role, replace the ID in "rid" variable with the ID from the role you are giving with the rank command}
{silence}
{c:rank SFW mode}
{=(rid):666413203852361729}


{=(comment): This portion is the images. onimg is displayed when the role is given, offimg is displayed when the role is removed}
{=(onimg):https://i.imgur.com/1kLBfce.png}
{=(offimg):https://i.imgur.com/fn8385z.png}

{=(comment): This portion is for the text displayed. "ontext" is displayed when the role is given, "offtext" is displayed when the role is removed}
{=(ontext):SFW Mode is now on, you're safe!}
{=(offtext):SFW Mode is now off, Go crazy!}

{=(comment): This portion is for the footer. "onfoot" is text displayed when role is given, "offfoot" is displayed when the role is removed}
{=(onfoot):To turn SFW mode back off, type !sfwmode}
{=(offfoot):To turn SFW mode back on, type !sfwmode}

{=(comment): This is where everything is put together into the final variables to use in the embed builder}
{=(roleimg):{if({contains({rid}):{user(roleids)}}==true):{offimg}|{onimg}}}
{=(roletext):{if({contains({rid}):{user(roleids)}}==true):{offtext}|{ontext}}}
{=(rolefoot):{if({contains({rid}):{user(roleids)}}==true):{offfoot}|{onfoot}}}

Embed

1 line
{"color": 16755601, "image": {"url": "{roleimg}"}, "title": "{user}, {roletext}", "footer": {"text": "{rolefoot}"}}
Raw JSON
{
  "id": 108550,
  "created_at": "2020-01-13T23:20:50.000Z",
  "tag_name": "sfwmode",
  "nsfw": false,
  "owner_id": "196498508784730113",
  "uses": 100,
  "description": "I created this as a way to customize the \"rank\" command. \nThis version I'm sharing is a \"safe for work\" mode. But you can change the text/images/role very easily to best fit your needs!\nThis version uses the text, and image, and footer.\n\nsee comments in the tag for further instructions on which each variable does. \n\nYou can obviously remove a portion if you want, or change where the text is displayed by moving the variable names around in the embed. \n\n*Please note you have to add a role to the rank system by using the command: !addrank Rolename\n",
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "638162546708316171",
  "sharer": "196498508784730113",
  "content": "{=(comment): The silence block silences the default rank command output. Replace the role in the rank block with your chosen role, replace the ID in \"rid\" variable with the ID from the role you are giving with the rank command}\n{silence}\n{c:rank SFW mode}\n{=(rid):666413203852361729}\n\n\n{=(comment): This portion is the images. onimg is displayed when the role is given, offimg is displayed when the role is removed}\n{=(onimg):https://i.imgur.com/1kLBfce.png}\n{=(offimg):https://i.imgur.com/fn8385z.png}\n\n{=(comment): This portion is for the text displayed. \"ontext\" is displayed when the role is given, \"offtext\" is displayed when the role is removed}\n{=(ontext):SFW Mode is now on, you're safe!}\n{=(offtext):SFW Mode is now off, Go crazy!}\n\n{=(comment): This portion is for the footer. \"onfoot\" is text displayed when role is given, \"offfoot\" is displayed when the role is removed}\n{=(onfoot):To turn SFW mode back off, type !sfwmode}\n{=(offfoot):To turn SFW mode back on, type !sfwmode}\n\n{=(comment): This is where everything is put together into the final variables to use in the embed builder}\n{=(roleimg):{if({contains({rid}):{user(roleids)}}==true):{offimg}|{onimg}}}\n{=(roletext):{if({contains({rid}):{user(roleids)}}==true):{offtext}|{ontext}}}\n{=(rolefoot):{if({contains({rid}):{user(roleids)}}==true):{offfoot}|{onfoot}}}",
  "embed": "{\"color\": 16755601, \"image\": {\"url\": \"{roleimg}\"}, \"title\": \"{user}, {roletext}\", \"footer\": {\"text\": \"{rolefoot}\"}}",
  "last_fetched": "2026-10-20T20:52:37.137Z"
}