Javascript Discord Bot

Hello, i’m making a bot to add whitelist via discord, however i don’t understand the method to turn hex into indentifier in javascript… is there a method?

you want to convert it from decimal to hex and append steam: before the hex

quick and dirty example (could be improved on but ill leave that to you)
anyway hope this helps
some random 64 number for testing >>
steambase = 76561197973413852;
hex = steambase.toString(16);
append = “steam:”;
result = append.concat(hex);
window.alert(result);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.