mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
Fix error with users without flags
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user