diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-24 18:32:45 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-24 18:32:45 -0500 |
commit | 1d6e64d5c43e4398e7c0488f114acba2c8a55164 (patch) | |
tree | f48b82baf43ef3a0f3d51253342200c0b347a501 /src/commands/info/userInfo.ts | |
parent | 9c83e59187b622807f8b5e8d3a514e3df4f9bd76 (diff) | |
download | tanzanite-1d6e64d5c43e4398e7c0488f114acba2c8a55164.tar.gz tanzanite-1d6e64d5c43e4398e7c0488f114acba2c8a55164.tar.bz2 tanzanite-1d6e64d5c43e4398e7c0488f114acba2c8a55164.zip |
fix(UserInfoCommand): error when user has no roles
Diffstat (limited to 'src/commands/info/userInfo.ts')
-rw-r--r-- | src/commands/info/userInfo.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 02a3be6..4e3675b 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -199,7 +199,7 @@ export default class UserInfoCommand extends BushCommand { } private static generateRolesField(embed: Embed, member?: BushGuildMember | undefined) { - if (!member || member.roles.cache.size < 1) return; + if (!member || member.roles.cache.size <= 1) return; // roles const roles = member.roles.cache |