mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Omit catch block errors when not needed
This commit is contained in:
@@ -54,7 +54,7 @@ module.exports = class UserCommand extends Command {
|
||||
• ${roles.length ? trimArray(roles, 6).join(', ') : 'None'}
|
||||
`;
|
||||
embed.setColor(member.displayHexColor);
|
||||
} catch (err) {
|
||||
} catch {
|
||||
embed.setFooter('Failed to resolve member, showing basic user information instead.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user