fix position

This commit is contained in:
bignutty 2024-08-09 11:38:36 +02:00
parent ad408531fe
commit 1cefaaab55

View file

@ -108,7 +108,7 @@ module.exports = {
author: {
name: r.name
},
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(`${context.guild.roles.length - r.position}/${context.guild.roles.length}`)}\n${smallPill("Hoisted ")} ${pill(`${r.hoist}`)}`
})
if(!r.name.startsWith("@") && r.mentionable) rolePage.author.name = "@" + r.name;