promote
Promotion Command for the Vanguard server.
Privateunrated
Content
67 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 ------}
{=(mver.proc):{if({mver.alp}>0):Verified|error}
{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}!={target(mention)}):2}
{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): Please include the user you are promoting. `!promote <user>`}
{=(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):{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}}}
{=(comment): Error Code 2 ------}
{=(tcheck):{if(raw.index==-1):error|{any({raw.index}==2|{raw.index}==7|{raw.index}==14|{raw.index}==19|{raw.index}==21|{raw.index}==22):errort}}
{shortcircuit({tcheck}==error): Target must be unverified.}
{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|OK}}}
{=(comment): Association ------}
{=(inT.rank):<@&{rawdat.roles({raw.index})}>}
{=(proT.rank):<@&{rawdat.roles({m:{raw.index}+1})}>}
{=(comment): Promotion ------}
{if({err.final}==OK):{c:role custom {target} -{inT.rank} +{proT.rank}}}
{=(comment): Delivery ------}
Congratulations! {target(mention)} was promoted from {inT.rank} to {proT.rank} by {user(mention)}!Raw JSON
{
"id": 150542,
"created_at": "2020-04-12T08:01:13.000Z",
"tag_name": "promote",
"nsfw": false,
"owner_id": "257035354274529290",
"uses": 0,
"description": "Promotion Command for the Vanguard server.",
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "511661491653574658",
"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{=(mver.proc):{if({mver.alp}>0):Verified|error}\n{=(errcheck):{if(mver.proc==error):1|{if({user(mention)}!={target(mention)}):2}\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): Please include the user you are promoting. `!promote <user>`}\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):{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}}}\n\n{=(comment): Error Code 2 ------}\n{=(tcheck):{if(raw.index==-1):error|{any({raw.index}==2|{raw.index}==7|{raw.index}==14|{raw.index}==19|{raw.index}==21|{raw.index}==22):errort}}\n\n{shortcircuit({tcheck}==error): Target must be unverified.}\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|OK}}}\n\n{=(comment): Association ------}\n{=(inT.rank):<@&{rawdat.roles({raw.index})}>}\n{=(proT.rank):<@&{rawdat.roles({m:{raw.index}+1})}>}\n\n{=(comment): Promotion ------}\n{if({err.final}==OK):{c:role custom {target} -{inT.rank} +{proT.rank}}}\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:36.666Z"
}