forgot to await a promise

This commit is contained in:
Erik 2022-04-25 16:23:01 +03:00
parent fa66e296f4
commit 7cc253ae26
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,6 @@ class ImportCommand extends SlashCommand {
const { webhook } = imported;
if (webhook) {
console.log(webhook);
if (typeof webhook === 'string') {
const hooks = await guild.fetchWebhooks();
const hook = hooks.get(webhook);

View File

@ -50,7 +50,7 @@ class SettingsMigrator {
let webhook = null;
if (version === '3')
webhook = this.mongo.findOne('webhooks', { guild: this.guild, feature: 'messageLog' });
webhook = await this.mongo.findOne('webhooks', { guild: this.guild, feature: 'messageLog' });
else if (version === '2')
({ webhook } = settings.chatlogs);