Compare commits

...

3 Commits

Author SHA1 Message Date
WatDuhHekBro 3a47acf05f Merge branch 'typescript' of https://github.com/keanuplayz/TravBot-v3 into experimental-core 2021-01-28 18:37:50 -06:00
Keanu Timmermans 74d36e36b2 Improved logic of role display on info.
Co-authored-by: Mijyuoon <mijuoon@gmail.com>
2021-01-29 01:15:42 +01:00
Keanu Timmermans baf17e6c76 Corrected usage of trimarray in info. 2021-01-29 00:57:50 +01:00
1 changed files with 1 additions and 5 deletions

View File

@ -181,11 +181,7 @@ 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.length > 0
? roles.join(", ")
: roles.length >= 10
? roles.slice(0, 10)
: "None"
roles.length == 0 ? "None" : roles.length <= 10 ? roles.join(", ") : trimArray(roles).join(", ")
}`
]);
$.channel.send(embed);