forked from Supositware/Haha-Yes
Fix fakebot
This commit is contained in:
parent
c62fcb68ab
commit
7cd741b315
1 changed files with 2 additions and 3 deletions
|
@ -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}`
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue