From 1d6e64d5c43e4398e7c0488f114acba2c8a55164 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 24 Feb 2022 18:32:45 -0500 Subject: fix(UserInfoCommand): error when user has no roles --- src/commands/info/userInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands') 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 -- cgit