I thought I fixed this issue with avatar but apparently not

This commit is contained in:
TheEssem 2020-07-23 16:10:24 -05:00
parent fea07b47ce
commit 10e934e722

View file

@ -10,7 +10,7 @@ exports.run = async (message, args) => {
const member = message.channel.guild.members.find(element => {
return userRegex.test(element.nick) ? userRegex.test(element.nick) : userRegex.test(element.username);
});
return member ? member.user.dynamicAvatarURL(null, 1024) : message.author.user.dynamicAvatarURL(null, 1024);
return member ? member.user.dynamicAvatarURL(null, 1024) : message.author.dynamicAvatarURL(null, 1024);
} else {
return message.author.dynamicAvatarURL(null, 1024);
}