3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: negative number in userinfo command

This commit is contained in:
almeidx 2022-04-27 10:34:16 +01:00
parent 8445c37f64
commit a31d074ba8
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5

View file

@ -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(