Improved logic of role display on info.

Co-authored-by: Mijyuoon <mijuoon@gmail.com>
This commit is contained in:
Keanu Timmermans 2021-01-29 01:15:42 +01:00
parent baf17e6c76
commit 74d36e36b2

View file

@ -183,11 +183,10 @@ export default new Command({
`** Server Join Date:** ${moment(member.joinedAt).format("LL LTS")}`,
`** Hoist Role:** ${member.roles.hoist ? member.roles.hoist.name : "None"}`,
`** Roles:** [${roles.length}]: ${
roles.length < 10
? roles.join(", ")
: roles.length > 10
? trimArray(roles)
: "None"
roles.length == 0 ? "None"
: roles.length <= 10
? roles.join(", ")
: trimArray(roles).join(", ")
}`
]);
$.channel.send(embed);