Fix trimmed array not being joined in .info

This commit is contained in:
Alyxia Sother 2022-03-29 18:58:47 +02:00
parent 389aa35124
commit 7c7cd6c7cf
No known key found for this signature in database
GPG Key ID: 01E16C4E775A37E4
2 changed files with 3 additions and 4 deletions

5
package-lock.json generated
View File

@ -2685,10 +2685,9 @@
},
"node_modules/fsevents": {
"version": "2.3.2",
"resolved": "https://npm.alyxia.dev/fsevents/-/fsevents-2.3.2.tgz",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
@ -8010,7 +8009,7 @@
},
"fsevents": {
"version": "2.3.2",
"resolved": "https://npm.alyxia.dev/fsevents/-/fsevents-2.3.2.tgz",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
"integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
"optional": true
},

View File

@ -262,7 +262,7 @@ async function getGuildInfo(guild: Guild, currentGuild: Guild | null) {
if (displayRoles) {
embed.addField(
`Roles [${roles.length - 1}]`,
roles.length < 10 ? roles.join(", ") : roles.length > 10 ? trimArray(roles) : "None"
roles.length < 10 ? roles.join(", ") : roles.length > 10 ? trimArray(roles).join(", ") : "None"
);
}