require at the right directory

This commit is contained in:
loicbersier 2019-08-12 14:23:26 +02:00
parent 3a505e4cd9
commit ae97f04bc9

View file

@ -45,7 +45,7 @@ class fakebotCommand extends Command {
}); });
}); });
} else { } else {
let webhook = reload(`./webhook/${message.guild.id}_${message.channel.id}.json`); let webhook = reload(`../../webhook/${message.guild.id}_${message.channel.id}.json`);
this.client.fetchWebhook(webhook.id, webhook.token) this.client.fetchWebhook(webhook.id, webhook.token)
.then(webhook => { .then(webhook => {
webhook.edit({ webhook.edit({