add mentionable hint

This commit is contained in:
bignutty 2024-08-09 01:51:53 +02:00
parent 07b8bd8963
commit f5e562506f

View file

@ -111,6 +111,7 @@ module.exports = {
description: `${smallPill("ID ")} ${pill(r.id)}\n${smallPill("Position ")} ${pill(`${r.position}/${context.guild.roles.length}`)}\n${smallPill("Hoisted ")} ${pill(`${r.hoist}`)}`
})
if(!r.name.startsWith("@") && r.mentionable) rolePage.author.name = "@" + r.name;
if(r.color === 0) rolePage.author.iconUrl = `https://lh3.googleusercontent.com/akBt-2Rz3efGuxAnOoSJbGuaqxZuRAI7ZUYKBgYZLT4vsk34qVWoAm3o6--RxupzZpayLSRsxO1LCwBECyBT_giQ3xhLMR03z7xngvm4m9ZgQ2Gya1i-3Q=w256-h256-bc0x0055aa-fcrop64=1,0000000000010001-rj-b36-c0x${DEFAULT_ROLE_COLOR}`
else {
rolePage.description += `\n${smallPill("Color ")} ${pill("#" + r.color.toString(16))}`