Idk what this is but I'm gonna try it

This commit is contained in:
Daniel Odendahl Jr
2017-04-05 18:29:13 +00:00
parent f23ea4ecfc
commit 20bb51ee7f
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class SteamCardCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
const user = args.user;
const userDisplayName = message.guild.member(user).displayName || user.username;
const userDisplayName = message.guild ? message.member(user).displayName : user.username;
let userAvatar = user.displayAvatarURL;
userAvatar = userAvatar.replace('.jpg', '.png');
userAvatar = userAvatar.replace('.gif', '.png');