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:
parent
8445c37f64
commit
a31d074ba8
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const MAX_ROLES_TO_DISPLAY = 15;
|
||||||
|
|
||||||
const trimRoles = (roles: string[]) =>
|
const trimRoles = (roles: string[]) =>
|
||||||
roles.length > MAX_ROLES_TO_DISPLAY
|
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(", ");
|
: roles.join(", ");
|
||||||
|
|
||||||
export async function getUserInfoEmbed(
|
export async function getUserInfoEmbed(
|
||||||
|
|
Loading…
Add table
Reference in a new issue