fix avatars

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

@ -16,7 +16,7 @@ module.exports = {
}, },
async execute(message, msg, args, cmd, prefix, mention, client) { async execute(message, msg, args, cmd, prefix, mention, client) {
let member = args.length ? (mention || client.users.cache.get(args[0]) || message.author) : message.author; let member = args.length ? (mention || client.users.cache.get(args[0]) || message.author) : message.author;
client.users.fetch(member.id, {force: true}); await client.users.fetch(member.id, {force: true});
if (message.guild) {message.guild.members.fetch(member.id, {force: true});} 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 name = message.guild ? message.guild.members.cache.get(member.id).displayName : member.username;
let options = new TagFilter([ let options = new TagFilter([

Loading…
Cancel
Save