mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
add mentionable hint
This commit is contained in:
parent
07b8bd8963
commit
f5e562506f
1 changed files with 1 additions and 0 deletions
|
@ -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}`)}`
|
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}`
|
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 {
|
else {
|
||||||
rolePage.description += `\n${smallPill("Color ")} ${pill("#" + r.color.toString(16))}`
|
rolePage.description += `\n${smallPill("Color ")} ${pill("#" + r.color.toString(16))}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue