Merge pull request #337 from almeidx/userinfo-roles
fix: negative number in userinfo command
This commit is contained in:
commit
961a8c7fff
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue