From 7cd741b3151485a222bcbccaafa97b4237960130 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 17 Oct 2019 01:13:39 +0200 Subject: [PATCH] Fix fakebot --- commands/fun/fakebot.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commands/fun/fakebot.js b/commands/fun/fakebot.js index 5cd752d..119a840 100644 --- a/commands/fun/fakebot.js +++ b/commands/fun/fakebot.js @@ -34,15 +34,14 @@ class fakebotCommand extends Command { async exec(message, args) { - console.log(args.member); - message.channel.createWebhook(message.guild.members.get(args.member.id).nickname, { + message.channel.createWebhook(args.member.username, { avatar: args.member.displayAvatarURL(), reason: `Fakebot/user command triggered by: ${message.author.username}` }) .then(webhook => { // Have to edit after creation otherwise the picture doesn't get applied webhook.edit({ - name: message.guild.members.get(args.member.id).nickname, + name: args.member.username, avatar: args.member.displayAvatarURL(), reason: `Fakebot/user command triggered by: ${message.author.username}` });