fix nickname thing

This commit is contained in:
loicbersier 2019-11-29 21:56:00 +01:00
parent 63515aa73a
commit 35378dfa07

View file

@ -41,7 +41,7 @@ class fakebotCommand extends Command {
url = Attachment[0].url;
}
// Show nickname if user is in guild
if (message.guild.members.get(args.user.id)) {
if (message.guild.members.get(args.user.id).nickname) {
username = message.guild.members.get(args.user.id).nickname;
}