mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
Fix trimmed array not being joined in .info
This commit is contained in:
parent
389aa35124
commit
7c7cd6c7cf
2 changed files with 3 additions and 4 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue