rankup
Private
Content
80 lines{=():}
{=(COMMENT): Role Names for output and checks, and Role IDs for command.}
{=(rank0Name):Regular User}
{=(rank1Name):Novice}
{=(rank1):RoleID}
{=(rank2Name):Basic Mod}
{=(rank2):RoleID}
{=(rank3Name):Corporal}
{=(rank3):RoleID}
{=(rank4Name):Sergent}
{=(rank4):RoleID}
{=(rank5Name):General}
{=(rank5):RoleID}
{=(COMMENT): DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING! }
{=(userRanks):{contains({rank1}):{user(roleids)}} {contains({rank2}):{user(roleids)}} {contains({rank3}):{user(roleids)}} {contains({rank4}):{user(roleids)}} {contains({rank5}):{user(roleids)}}}
{=(targetRanks):{contains({rank1}):{target(roleids)}} {contains({rank2}):{target(roleids)}} {contains({rank3}):{target(roleids)}} {contains({rank4}):{target(roleids)}} {contains({rank5}):{target(roleids)}}}
{=(aboveBasicMod):{in(true true):{in(true):{userRanks(2)}} {in(true):{userRanks(3+)}}}}
{=(isAboveBasicMod.true):{m:trunc({index(true):{userRanks(3+)}}+3)}}
{=(isAboveBasicMod.false):{m:trunc({index(true):{userRanks}}+1)}}
{=(currentUserRank):{isAboveBasicMod.{aboveBasicMod}}}
{=(.aboveBasicMod):{in(true true):{in(true):{targetRanks(2)}} {in(true):{targetRanks(3+)}}}}
{=(.isAboveBasicMod.true):{m:trunc({index(true):{targetRanks(3+)}}+3)}}
{=(.isAboveBasicMod.false):{m:trunc({index(true):{targetRanks}}+1)}}
{=(currentTargetRank):{.isAboveBasicMod.{.aboveBasicMod}}}
{=(nextTargetRank):{m:trunc({currentTargetRank}+1)}}
{=(COMMENT): PERMISSION CHECK }
{=({rank{currentUserRank}Name}-{rank{currentTargetRank}Name}):false}
{=(General-Regular User):true}
{=(Sergent-Regular User):true}
{=(Corporal-Regular User):true}
{=(General-Novice):true}
{=(Sergent-Novice):true}
{=(Corporal-Novice):true}
{=(General-Basic Mod):true}
{=(Sergent-Basic Mod):true}
{=(General-Corporal):true}
{=(General-Sergent):true}
{=(COMMENT): Error Handling Below }
{=(permissionCheck):{{rank{currentUserRank}Name}-{rank{currentTargetRank}Name}}}
{=(permissionCheck.false):blacklist({user(mention)}, **{rank{currentUserRank}Name}** cannot promote users to **{rank{nextTargetRank}Name}**!):{server(id)}}
{=(permissionCheck.true):}
{{permissionCheck.{permissionCheck}}}
{=(maxPromotion):{contains({currentTargetRank}):5}}
{=(maxPromotion.false):}
{=(maxPromotion.true):blacklist({user(mention)}, that user is a **General**, they are already maximum rank!):{server(id)}}
{{maxPromotion.{maxPromotion}}}
{=(cantPromote):{contains({currentUserRank}):0 1 2}}
{=(cantPromote.false):}
{=(cantPromote.true):blacklist({user(mention)}, you are not a high enough rank to be able to promote!):{server(id)}}
{{cantPromote.{cantPromote}}}
{=(noTarget):{contains({user(id)}):{target(id)}}}
{=(noTarget.false):}
{=(noTarget.true):blacklist({user(mention)}, you need to mention a user!):{server(id)}}
{{noTarget.{noTarget}}}
{=(COMMENT): Command to run on successful usage }
{=(removeRank{currentTargetRank}): -{rank{currentTargetRank}}}
{=(removeRank0):}
{=(removeRank2):}
{cmdAdmin:role c {target(id)} +{rank{nextTargetRank}}{removeRank{currentTargetRank}}}Embed
1 line{"color": 8311585, "title": "Promotion!", "author": {"name": "{user(proper)} used rankup", "icon_url": "{user(avatar)}"}, "thumbnail": {"url": "{target(avatar)}"}, "description": "**{target(proper)}** has been promoted from **{rank{currentTargetRank}Name}** to **{rank{nextTargetRank}Name}**"}Raw JSON
{
"id": 2736680,
"created_at": "2026-08-19T22:59:03.000Z",
"tag_name": "rankup",
"nsfw": false,
"owner_id": "602615705015156736",
"uses": 59,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "1039570200544170025",
"sharer": "602615705015156736",
"content": "{=():}\n\n{=(COMMENT): Role Names for output and checks, and Role IDs for command.}\n{=(rank0Name):Regular User}\n\n{=(rank1Name):Novice}\n{=(rank1):RoleID}\n\n{=(rank2Name):Basic Mod}\n{=(rank2):RoleID}\n\n{=(rank3Name):Corporal}\n{=(rank3):RoleID}\n\n{=(rank4Name):Sergent}\n{=(rank4):RoleID}\n\n{=(rank5Name):General}\n{=(rank5):RoleID}\n\n{=(COMMENT): DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING! }\n\n{=(userRanks):{contains({rank1}):{user(roleids)}} {contains({rank2}):{user(roleids)}} {contains({rank3}):{user(roleids)}} {contains({rank4}):{user(roleids)}} {contains({rank5}):{user(roleids)}}}\n{=(targetRanks):{contains({rank1}):{target(roleids)}} {contains({rank2}):{target(roleids)}} {contains({rank3}):{target(roleids)}} {contains({rank4}):{target(roleids)}} {contains({rank5}):{target(roleids)}}}\n\n{=(aboveBasicMod):{in(true true):{in(true):{userRanks(2)}} {in(true):{userRanks(3+)}}}}\n{=(isAboveBasicMod.true):{m:trunc({index(true):{userRanks(3+)}}+3)}}\n{=(isAboveBasicMod.false):{m:trunc({index(true):{userRanks}}+1)}}\n{=(currentUserRank):{isAboveBasicMod.{aboveBasicMod}}}\n\n{=(.aboveBasicMod):{in(true true):{in(true):{targetRanks(2)}} {in(true):{targetRanks(3+)}}}}\n{=(.isAboveBasicMod.true):{m:trunc({index(true):{targetRanks(3+)}}+3)}}\n{=(.isAboveBasicMod.false):{m:trunc({index(true):{targetRanks}}+1)}}\n{=(currentTargetRank):{.isAboveBasicMod.{.aboveBasicMod}}}\n{=(nextTargetRank):{m:trunc({currentTargetRank}+1)}}\n\n{=(COMMENT): PERMISSION CHECK }\n{=({rank{currentUserRank}Name}-{rank{currentTargetRank}Name}):false}\n{=(General-Regular User):true}\n{=(Sergent-Regular User):true}\n{=(Corporal-Regular User):true}\n\n{=(General-Novice):true}\n{=(Sergent-Novice):true}\n{=(Corporal-Novice):true}\n\n{=(General-Basic Mod):true}\n{=(Sergent-Basic Mod):true}\n\n{=(General-Corporal):true}\n\n{=(General-Sergent):true}\n\n{=(COMMENT): Error Handling Below }\n{=(permissionCheck):{{rank{currentUserRank}Name}-{rank{currentTargetRank}Name}}}\n{=(permissionCheck.false):blacklist({user(mention)}, **{rank{currentUserRank}Name}** cannot promote users to **{rank{nextTargetRank}Name}**!):{server(id)}}\n{=(permissionCheck.true):}\n{{permissionCheck.{permissionCheck}}}\n\n{=(maxPromotion):{contains({currentTargetRank}):5}}\n{=(maxPromotion.false):}\n{=(maxPromotion.true):blacklist({user(mention)}, that user is a **General**, they are already maximum rank!):{server(id)}}\n{{maxPromotion.{maxPromotion}}}\n\n{=(cantPromote):{contains({currentUserRank}):0 1 2}}\n{=(cantPromote.false):}\n{=(cantPromote.true):blacklist({user(mention)}, you are not a high enough rank to be able to promote!):{server(id)}}\n{{cantPromote.{cantPromote}}}\n\n{=(noTarget):{contains({user(id)}):{target(id)}}}\n{=(noTarget.false):}\n{=(noTarget.true):blacklist({user(mention)}, you need to mention a user!):{server(id)}}\n{{noTarget.{noTarget}}}\n\n{=(COMMENT): Command to run on successful usage }\n{=(removeRank{currentTargetRank}): -{rank{currentTargetRank}}}\n{=(removeRank0):}\n{=(removeRank2):}\n\n{cmdAdmin:role c {target(id)} +{rank{nextTargetRank}}{removeRank{currentTargetRank}}}",
"embed": "{\"color\": 8311585, \"title\": \"Promotion!\", \"author\": {\"name\": \"{user(proper)} used rankup\", \"icon_url\": \"{user(avatar)}\"}, \"thumbnail\": {\"url\": \"{target(avatar)}\"}, \"description\": \"**{target(proper)}** has been promoted from **{rank{currentTargetRank}Name}** to **{rank{nextTargetRank}Name}**\"}",
"last_fetched": "2026-10-25T03:54:05.112Z"
}