more avatar bugs

master
Kit Kasune 3 years ago
parent a8218aec5d
commit a785839dc4
  1. 5
      commands/misc/avatar.js

@ -15,8 +15,9 @@ module.exports = {
extra: null
},
async execute(message, msg, args, cmd, prefix, mention, client) {
let member = args.length ? (mention || client.users.cache.get(args[0]) || message.author) : message.author;
await client.users.fetch(member.id, {force: true});
let fail = false;
await client.users.fetch(member.id, {force: true}).catch(() => fail = true);
let member = args.length && !fail ? (mention || client.users.cache.get(args[0]) || message.author) : message.author;
if (message.guild) {message.guild.members.fetch(member.id, {force: true});}
let name = message.guild ? message.guild.members.cache.get(member.id).displayName : member.username;
let options = new TagFilter([

Loading…
Cancel
Save