master
Kit Kasune 3 years ago
parent 032566178d
commit 8c10ba4f56
  1. 2
      commands/misc/avatar.js

@ -16,8 +16,8 @@ module.exports = {
}, },
async execute(message, msg, args, cmd, prefix, mention, client) { async execute(message, msg, args, cmd, prefix, mention, client) {
let fail = false; 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; let member = args.length && !fail ? (mention || client.users.cache.get(args[0]) || message.author) : message.author;
await client.users.fetch(member.id, {force: true}).catch(() => fail = 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