award

Privateunrated

Content

21 lines
{silent}{override}
{=(award):{args(1)}}
{=(awardWithoutSigns1):{replace(\<@&,):\{award}}}
{=(awardWithoutSigns2):{replace(>,):{awardWithoutSigns1}}}
{=(checkAwardMention):{in(<@&):{args(1)}}}
{=(checkAwardeeMention):{and({in(<@):{args(2)}}==true|{in(<@&):{args(2)}}==false):true|false}}
{=(checkAwardeeHasRole):{in({awardWithoutSigns2}):{target(roleids)}}}
{=(checkMentions):{and({checkAwardMention}==true|{checkAwardeeMention}==true):true|false}}
{=(checkSuccess):{and({checkMentions}==true|{checkAwardeeHasRole}==false):true|false}}

{=(errorDesc):Usage: ```!award @role @awardee```
Remember to mention both the role and awardee!}
{=(alreadyHasRoleDesc): {target} already has that role!}
{=(successDesc): Congratulations {target(mention)}! You have been awarded the role {award} by {user(mention)}!}

{=(embedIcon):{if({checkSuccess}==true):{target(icon)}|https://www.freeiconspng.com/uploads/orange-error-icon-0.png}}
{=(embedTitle):{if({checkSuccess}==true):Congratulations!|Error}}
{=(embedDesc): {if({checkSuccess}==true):{successDesc}|{and({checkMentions}==false|{checkAwardeeHasRole}==false):{errorDesc}|{and({checkMentions}==true|{checkAwardeeHasRole}==true):{alreadyHasRoleDesc}|{and({checkMentions}==false|{checkAwardeeHasRole}==true):{errorDesc}}}}}}
{embed(color):{if({checkSuccess}==true):#ffce00|#FF0000}}

{cmd:{if({checkSuccess}==true):role add {args(2)} {award}|echo boo}}

Embed

1 line
{"color": 5198940, "author": {"name": "{embedTitle}", "icon_url": "{embedIcon}"}, "description": "{embedDesc}"}
Raw JSON
{
  "id": 1126497,
  "created_at": "2021-10-27T16:43:40.000Z",
  "tag_name": "award",
  "nsfw": false,
  "owner_id": "239671399373996032",
  "uses": 55,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "662005355181768704",
  "sharer": "239671399373996032",
  "content": "{silent}{override}\n{=(award):{args(1)}}\n{=(awardWithoutSigns1):{replace(\\<@&,):\\{award}}}\n{=(awardWithoutSigns2):{replace(>,):{awardWithoutSigns1}}}\n{=(checkAwardMention):{in(<@&):{args(1)}}}\n{=(checkAwardeeMention):{and({in(<@):{args(2)}}==true|{in(<@&):{args(2)}}==false):true|false}}\n{=(checkAwardeeHasRole):{in({awardWithoutSigns2}):{target(roleids)}}}\n{=(checkMentions):{and({checkAwardMention}==true|{checkAwardeeMention}==true):true|false}}\n{=(checkSuccess):{and({checkMentions}==true|{checkAwardeeHasRole}==false):true|false}}\n\n{=(errorDesc):Usage: ```!award @role @awardee```\nRemember to mention both the role and awardee!}\n{=(alreadyHasRoleDesc): {target} already has that role!}\n{=(successDesc): Congratulations {target(mention)}! You have been awarded the role {award} by {user(mention)}!}\n\n{=(embedIcon):{if({checkSuccess}==true):{target(icon)}|https://www.freeiconspng.com/uploads/orange-error-icon-0.png}}\n{=(embedTitle):{if({checkSuccess}==true):Congratulations!|Error}}\n{=(embedDesc): {if({checkSuccess}==true):{successDesc}|{and({checkMentions}==false|{checkAwardeeHasRole}==false):{errorDesc}|{and({checkMentions}==true|{checkAwardeeHasRole}==true):{alreadyHasRoleDesc}|{and({checkMentions}==false|{checkAwardeeHasRole}==true):{errorDesc}}}}}}\n{embed(color):{if({checkSuccess}==true):#ffce00|#FF0000}}\n\n{cmd:{if({checkSuccess}==true):role add {args(2)} {award}|echo boo}}",
  "embed": "{\"color\": 5198940, \"author\": {\"name\": \"{embedTitle}\", \"icon_url\": \"{embedIcon}\"}, \"description\": \"{embedDesc}\"}",
  "last_fetched": "2026-10-20T17:54:27.576Z"
}