promote

Privateunrated

Content

18 lines
{=(promotableroles):1002267122363285626 965701905366007869 965699700680454165 987123011536687184 1001898814816403459 
1001899160255082617 1001899216534257714 1001899285140475904 965414846277488681}

{=(comment):Don't touch this section}
{=(SRlength):{index({promotableroles(0)}):{promotableroles}}}
{=(URs):{user(roleids)}}
{=(TRs):{target(roleids)}}
{=(nextrole):{if({contains({TRs(0)}):{promotableroles}}==true):{promotableroles({m:trunc({index({TRs(0)}):{promotableroles}}+3)})}|{promotableroles(1)}}}

{=(comment):Don't touch this section}
{=(checks):{if({contains({URs(0)}):{promotableroles}}==false):1|{if({target(id)}=={user(id)}):2|{if({index({TRs(0)}):{promotableroles}}=={SRlength}):3|{if({m:trunc({index({URs(0)}):{promotableroles}}-1)}<={index({TRs(0)}):{promotableroles}}):4|false}}}}}
{=(error):You do not have a role within the list of promotable roles.$You did not mention a user. You cannot promote yourself.${target} already has the highest role in the promotable role list.$You must be at least 2 ranks higher than {target} to promote them.}

{{if({checks}==false):c:role custom {target(id)} +{nextrole}|error({checks}):$}}
{if({checks}==false): {=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}
{embed(color):#{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}{target(mention)} has been promoted to <@​&{nextrole}> by {user(mention)}.
Reason: {args}}}
{override}{silent}
Raw JSON
{
  "id": 1495251,
  "created_at": "2022-07-28T17:42:57.000Z",
  "tag_name": "promote",
  "nsfw": false,
  "owner_id": "903226378596519936",
  "uses": 89,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "965414697891418172",
  "sharer": "903226378596519936",
  "content": "{=(promotableroles):1002267122363285626 965701905366007869 965699700680454165 987123011536687184 1001898814816403459 \n1001899160255082617 1001899216534257714 1001899285140475904 965414846277488681}\n\n{=(comment):Don't touch this section}\n{=(SRlength):{index({promotableroles(0)}):{promotableroles}}}\n{=(URs):{user(roleids)}}\n{=(TRs):{target(roleids)}}\n{=(nextrole):{if({contains({TRs(0)}):{promotableroles}}==true):{promotableroles({m:trunc({index({TRs(0)}):{promotableroles}}+3)})}|{promotableroles(1)}}}\n\n{=(comment):Don't touch this section}\n{=(checks):{if({contains({URs(0)}):{promotableroles}}==false):1|{if({target(id)}=={user(id)}):2|{if({index({TRs(0)}):{promotableroles}}=={SRlength}):3|{if({m:trunc({index({URs(0)}):{promotableroles}}-1)}<={index({TRs(0)}):{promotableroles}}):4|false}}}}}\n{=(error):You do not have a role within the list of promotable roles.$You did not mention a user. You cannot promote yourself.${target} already has the highest role in the promotable role list.$You must be at least 2 ranks higher than {target} to promote them.}\n\n{{if({checks}==false):c:role custom {target(id)} +{nextrole}|error({checks}):$}}\n{if({checks}==false): {=(i):#:A,B,C,D,E,F,0,1,2,3,4,5,6,7,8,9}\n{embed(color):#{{i}}{{i}}{{i}}{{i}}{{i}}{{i}}{target(mention)} has been promoted to <@​&{nextrole}> by {user(mention)}.\nReason: {args}}}\n{override}{silent}",
  "embed": "{}",
  "last_fetched": "2026-10-20T18:54:48.812Z"
}