From 5a0046146fb2a697aead63d2af492db9f0ef9113 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 10 Aug 2022 10:27:35 -0400 Subject: update discord js and discord-akairo fix breaking changes add unverified bot emoji to user command --- src/commands/info/userInfo.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commands/info/userInfo.ts') diff --git a/src/commands/info/userInfo.ts b/src/commands/info/userInfo.ts index 7b67816..6def866 100644 --- a/src/commands/info/userInfo.ts +++ b/src/commands/info/userInfo.ts @@ -62,6 +62,7 @@ export default class UserInfoCommand extends BushCommand { : typeof args.user === 'object' ? args.user : await this.client.users.fetch(`${args.user}`).catch(() => undefined); + if (user === undefined) return message.util.reply(`${emojis.error} Invalid user.`); const member = message.guild ? await message.guild.members.fetch(user.id).catch(() => undefined) : undefined; await user.fetch(true); // gets banner info and accent color @@ -85,6 +86,9 @@ export default class UserInfoCommand extends BushCommand { // Flags if (user.client.config.owners.includes(user.id)) emojis.push(mappings.otherEmojis.Developer); if (superUsers.includes(user.id)) emojis.push(mappings.otherEmojis.Superuser); + + if (user.bot) emojis.push(mappings.otherEmojis.Bot); + const flags = user.flags?.toArray(); if (flags) { flags.forEach((f) => { -- cgit