promote
Privateunrated
Content
70 lines{delete}
{=(comment): Check user roles -----}
{=(rawver.com):{if({contains(691441556653080627):{user(roleids)}}==true):1|0}}
{=(rawver.divcom):{if({contains(691443399609548830):{user(roleids)}}==false):1|0}}
{=(rawver.col):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}
{=(rawver.ltcol):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}
{=(rawver.maj):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}
{=(comment): Verification ------}
{=(mver.alp):{m:({rawver.com}+{rawver.divcom}+{rawver.col}+{rawver.ltcol}+{rawver.maj})}}
{=(comment): Error Check ------}
{=(comment): Moved to Error Check 2}
{=(mver.proc):{if({mver.alp}>0):Verified|error}}
{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}=={target(mention)}):2|0}}}
{=(comment): Data ------}
{=(rawdat.roles):691449062263881738 691449061571821569 691449060976099430 691449060527439882 691449060007346217 691449059176611922 691449058660974652 691449058132230144 691443414281224224 691443413970845727 691443413379317760 691443412842577940 691443411965706253 691443411336691723 691443410850152469 691443410405556255 691443409692655686 691443409159979048 691443408241164340 691443408023322684 691443407431663666 691443402306486272 691443402058760253 691443400972566569 691443400343289989}
{=(comment): Check Target Roles}
{=(rawtar.1):{if({contains({rawdat.roles(1)}):{target(roleids)}}==true):1|0}}
{=(rawtar.2):{if({contains({rawdat.roles(2)}):{target(roleids)}}==true):1|0}}
{=(rawtar.3):{if({contains({rawdat.roles(3)}):{target(roleids)}}==true):1|0}}
{=(rawtar.4):{if({contains({rawdat.roles(4)}):{target(roleids)}}==true):1|0}}
{=(rawtar.5):{if({contains({rawdat.roles(5)}):{target(roleids)}}==true):1|0}}
{=(rawtar.6):{if({contains({rawdat.roles(6)}):{target(roleids)}}==true):1|0}}
{=(rawtar.7):{if({contains({rawdat.roles(7)}):{target(roleids)}}==true):1|0}}
{=(rawtar.8):{if({contains({rawdat.roles(8)}):{target(roleids)}}==true):1|0}}
{=(rawtar.9):{if({contains({rawdat.roles(9)}):{target(roleids)}}==true):1|0}}
{=(rawtar.10):{if({contains({rawdat.roles(10)}):{target(roleids)}}==true):1|0}}
{=(rawtar.11):{if({contains({rawdat.roles(11)}):{target(roleids)}}==true):1|0}}
{=(rawtar.12):{if({contains({rawdat.roles(12)}):{target(roleids)}}==true):1|0}}
{=(rawtar.13):{if({contains({rawdat.roles(13)}):{target(roleids)}}==true):1|0}}
{=(rawtar.14):{if({contains({rawdat.roles(14)}):{target(roleids)}}==true):1|0}}
{=(rawtar.15):{if({contains({rawdat.roles(15)}):{target(roleids)}}==true):1|0}}
{=(rawtar.16):{if({contains({rawdat.roles(16)}):{target(roleids)}}==true):1|0}}
{=(rawtar.17):{if({contains({rawdat.roles(17)}):{target(roleids)}}==true):1|0}}
{=(rawtar.18):{if({contains({rawdat.roles(18)}):{target(roleids)}}==true):1|0}}
{=(rawtar.19):{if({contains({rawdat.roles(19)}):{target(roleids)}}==true):1|0}}
{=(rawtar.20):{if({contains({rawdat.roles(20)}):{target(roleids)}}==true):1|0}}
{=(rawtar.21):{if({contains({rawdat.roles(21)}):{target(roleids)}}==true):1|0}}
{=(rawtar.22):{if({contains({rawdat.roles(22)}):{target(roleids)}}==true):1|0}}
{=(rawtar.23):{if({contains({rawdat.roles(23)}):{target(roleids)}}==true):1|0}}
{=(rawtar.24):{if({contains({rawdat.roles(24)}):{target(roleids)}}==true):1|0}}
{=(rawtar.25):{if({contains({rawdat.roles(25)}):{target(roleids)}}==true):1|0}}
{=(comment): Indexing ------}
{=(raw.index):{m:trunc({index(1):{rawtar.1} {rawtar.2} {rawtar.3} {rawtar.4} {rawtar.5} {rawtar.6} {rawtar.7} {rawtar.8} {rawtar.9} {rawtar.10} {rawtar.11} {rawtar.12} {rawtar.13} {rawtar.14} {rawtar.15} {rawtar.16} {rawtar.17} {rawtar.18} {rawtar.19} {rawtar.20} {rawtar.21} {rawtar.22} {rawtar.23} {rawtar.24} {rawtar.25}}+1)}}
{=(comment): Error Check 2 ------}
{=(tcheck):{if({raw.index}==0):error|{any({raw.index}==2|{raw.index}==7|{raw.index}==14|{raw.index}==19|{raw.index}==22):errort}}}
{shortcircuit({tcheck}==error): Target is unverified and/or not enlisted.}
{shortcircuit({tcheck}==errort): Target has reached the end of their classification's rank. Please use `!cpromote` instead. Do `!info cpromotion` for more details.}
{=(err.final):{if({errcheck}>=1):error|{if({tcheck}==error):error|{if({tcheck}==errort):error|OK}}}}
{=(mver.proc):{if({mver.alp}>0):Verified|error}}
{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}=={target(mention)}):2|0}}}
{shortcircuit({errcheck}==1): Your rank is not high enough to promote others, or, you're experiencing some other problems. Please run the command `!info promotion` for more details.}
{shortcircuit({errcheck}==2): You're either leaving the command blank or you're trying to promote yourself. Either way, the command's not going to work. `!promote <user>`}
{=(comment): Association ------}
{=(inT.rank):<@&{rawdat.roles({raw.index})}>}
{=(proT.rank):<@&{rawdat.roles({m:trunc({raw.index}+1)})}>}
{=(comment): Promotion ------}
{{if({err.final}==OK):cmd:role custom {target} -{inT.rank} +{proT.rank}|echo Error}}
{=(comment): Delivery ------}
Congratulations! {target(mention)} was promoted from {inT.rank} to {proT.rank} by {user(mention)}!Raw JSON
{
"id": 150628,
"created_at": "2020-04-12T11:17:58.000Z",
"tag_name": "promote",
"nsfw": false,
"owner_id": "257035354274529290",
"uses": 68,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "691439809260159007",
"sharer": "257035354274529290",
"content": "{delete}\n\n{=(comment): Check user roles -----}\n{=(rawver.com):{if({contains(691441556653080627):{user(roleids)}}==true):1|0}}\n{=(rawver.divcom):{if({contains(691443399609548830):{user(roleids)}}==false):1|0}}\n{=(rawver.col):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}\n{=(rawver.ltcol):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}\n{=(rawver.maj):{if({contains(691441556653080627):{user(roleids)}}==false):1|0}}\n\n{=(comment): Verification ------}\n{=(mver.alp):{m:({rawver.com}+{rawver.divcom}+{rawver.col}+{rawver.ltcol}+{rawver.maj})}}\n\n{=(comment): Error Check ------}\n{=(comment): Moved to Error Check 2}\n{=(mver.proc):{if({mver.alp}>0):Verified|error}}\n{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}=={target(mention)}):2|0}}}\n\n{=(comment): Data ------}\n{=(rawdat.roles):691449062263881738 691449061571821569 691449060976099430 691449060527439882 691449060007346217 691449059176611922 691449058660974652 691449058132230144 691443414281224224 691443413970845727 691443413379317760 691443412842577940 691443411965706253 691443411336691723 691443410850152469 691443410405556255 691443409692655686 691443409159979048 691443408241164340 691443408023322684 691443407431663666 691443402306486272 691443402058760253 691443400972566569 691443400343289989}\n\n{=(comment): Check Target Roles}\n{=(rawtar.1):{if({contains({rawdat.roles(1)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.2):{if({contains({rawdat.roles(2)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.3):{if({contains({rawdat.roles(3)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.4):{if({contains({rawdat.roles(4)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.5):{if({contains({rawdat.roles(5)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.6):{if({contains({rawdat.roles(6)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.7):{if({contains({rawdat.roles(7)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.8):{if({contains({rawdat.roles(8)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.9):{if({contains({rawdat.roles(9)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.10):{if({contains({rawdat.roles(10)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.11):{if({contains({rawdat.roles(11)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.12):{if({contains({rawdat.roles(12)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.13):{if({contains({rawdat.roles(13)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.14):{if({contains({rawdat.roles(14)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.15):{if({contains({rawdat.roles(15)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.16):{if({contains({rawdat.roles(16)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.17):{if({contains({rawdat.roles(17)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.18):{if({contains({rawdat.roles(18)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.19):{if({contains({rawdat.roles(19)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.20):{if({contains({rawdat.roles(20)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.21):{if({contains({rawdat.roles(21)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.22):{if({contains({rawdat.roles(22)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.23):{if({contains({rawdat.roles(23)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.24):{if({contains({rawdat.roles(24)}):{target(roleids)}}==true):1|0}}\n{=(rawtar.25):{if({contains({rawdat.roles(25)}):{target(roleids)}}==true):1|0}}\n\n{=(comment): Indexing ------}\n{=(raw.index):{m:trunc({index(1):{rawtar.1} {rawtar.2} {rawtar.3} {rawtar.4} {rawtar.5} {rawtar.6} {rawtar.7} {rawtar.8} {rawtar.9} {rawtar.10} {rawtar.11} {rawtar.12} {rawtar.13} {rawtar.14} {rawtar.15} {rawtar.16} {rawtar.17} {rawtar.18} {rawtar.19} {rawtar.20} {rawtar.21} {rawtar.22} {rawtar.23} {rawtar.24} {rawtar.25}}+1)}}\n\n{=(comment): Error Check 2 ------}\n{=(tcheck):{if({raw.index}==0):error|{any({raw.index}==2|{raw.index}==7|{raw.index}==14|{raw.index}==19|{raw.index}==22):errort}}}\n\n{shortcircuit({tcheck}==error): Target is unverified and/or not enlisted.}\n{shortcircuit({tcheck}==errort): Target has reached the end of their classification's rank. Please use `!cpromote` instead. Do `!info cpromotion` for more details.}\n{=(err.final):{if({errcheck}>=1):error|{if({tcheck}==error):error|{if({tcheck}==errort):error|OK}}}}\n{=(mver.proc):{if({mver.alp}>0):Verified|error}}\n{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}=={target(mention)}):2|0}}}\n{shortcircuit({errcheck}==1): Your rank is not high enough to promote others, or, you're experiencing some other problems. Please run the command `!info promotion` for more details.}\n{shortcircuit({errcheck}==2): You're either leaving the command blank or you're trying to promote yourself. Either way, the command's not going to work. `!promote <user>`}\n\n{=(comment): Association ------}\n{=(inT.rank):<@&{rawdat.roles({raw.index})}>}\n{=(proT.rank):<@&{rawdat.roles({m:trunc({raw.index}+1)})}>}\n\n{=(comment): Promotion ------}\n{{if({err.final}==OK):cmd:role custom {target} -{inT.rank} +{proT.rank}|echo Error}}\n\n{=(comment): Delivery ------}\nCongratulations! {target(mention)} was promoted from {inT.rank} to {proT.rank} by {user(mention)}!",
"embed": "{}",
"last_fetched": "2026-10-20T21:13:37.634Z"
}