From 7c7cd6c7cfe06d054169d49e0f54552a8db8f135 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Tue, 29 Mar 2022 18:58:47 +0200 Subject: [PATCH] Fix trimmed array not being joined in .info --- package-lock.json | 5 ++--- src/commands/utility/info.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index d187931..78ccd4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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 }, diff --git a/src/commands/utility/info.ts b/src/commands/utility/info.ts index e480771..e24a816 100644 --- a/src/commands/utility/info.ts +++ b/src/commands/utility/info.ts @@ -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" ); }