mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Updated examples
This commit is contained in:
@@ -57,6 +57,12 @@ exports.toDec = function (data) {
|
||||
|
||||
exports.toHex = function (data) {
|
||||
|
||||
return "#" + data.toString(16);
|
||||
var text = data.toString(16);
|
||||
|
||||
while(text.length < 6){
|
||||
text = "0" + text;
|
||||
}
|
||||
|
||||
return "#" + text;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user