Fix error with users without flags

This commit is contained in:
Dragon Fire
2020-07-14 09:00:01 -04:00
parent 443b8bf15d
commit f72b883ffe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ module.exports = class UserCommand extends Command {
}
async run(msg, { user }) {
const userFlags = user.flags.toArray();
const userFlags = user.flags ? user.flags.toArray() : [];
const embed = new MessageEmbed()
.setThumbnail(user.displayAvatarURL({ format: 'png', dynamic: true }))
.setAuthor(user.tag)