UnRankTemp function, Remove temporary ranks, not permanent ones!
The :unRank function sets a user's rank to NonAdmin, even if they were permRanked to Vip or Mod, which is not ideal.
The :unRankTemp function would basically just remove any tempRanks given to a player.
This is intended for the API 🙃
@ForeverHDTeam · Solution
good news, v2 does exactly this. temp and permanent roles are now separate things with their own commands, so taking one never touches the other:
via chat / interface
;giveServerRole <player> <role>and;takeServerRole <player> <role>- a role for this server only, gone when they leave;givePermRole <user> <role>and;takePermRole <user> <role>- a saved role that follows the user across every server. these work on offline users too, so you can use a username or user id of someone who isn't in the game;takeServerRoleonly removes a server role. if the person also holds that role permanently, the permanent one stays exactly as it was, which is the bit v1's:unRankgot wrong and has been great to finally solve with v2from the api
docs for all of this at hdadmin.com/server-api/#giveroleasync-server and hdadmin.com/server-api/#takeroleasync-server