use icon pill for formatting scores

This commit is contained in:
derpystuff 2022-10-03 21:55:23 +02:00
parent 66254a2f7a
commit 31262bb7b2
3 changed files with 9 additions and 4 deletions

View file

@ -21,4 +21,9 @@ module.exports.link = function(url, masked, tooltip = ""){
module.exports.timestamp = function(time, flag = "t"){
return `<t:${Math.floor(time/1000)}:${flag}>`
}
module.exports.iconPill = function(icon, content){
if(!ICONS[icon]) icon = "question"
return ICONS[icon] + ' ' + "` " + content + " `"
}