From 61094bcb8cd9d29df0581011256119c4c5c2fd7f Mon Sep 17 00:00:00 2001 From: Ibotmealot <42391199+Ibotmealot@users.noreply.github.com> Date: Mon, 9 May 2022 16:22:10 -0400 Subject: [PATCH] fix: negative number in userinfo command --- backend/src/plugins/Utility/functions/getUserInfoEmbed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Utility/functions/getUserInfoEmbed.ts b/backend/src/plugins/Utility/functions/getUserInfoEmbed.ts index e775205c..c4922bed 100644 --- a/backend/src/plugins/Utility/functions/getUserInfoEmbed.ts +++ b/backend/src/plugins/Utility/functions/getUserInfoEmbed.ts @@ -20,7 +20,7 @@ const MAX_ROLES_TO_DISPLAY = 15; const trimRoles = (roles: string[]) => roles.length > MAX_ROLES_TO_DISPLAY - ? roles.slice(0, MAX_ROLES_TO_DISPLAY).join(", ") + `, and ${MAX_ROLES_TO_DISPLAY - roles.length} more roles` + ? roles.slice(0, MAX_ROLES_TO_DISPLAY).join(", ") + `, and ${roles.length - MAX_ROLES_TO_DISPLAY} more roles` : roles.join(", "); export async function getUserInfoEmbed(