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: 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; const { webhook } = imported;
if (webhook) { if (webhook) {
console.log(webhook);
if (typeof webhook === 'string') { if (typeof webhook === 'string') {
const hooks = await guild.fetchWebhooks(); const hooks = await guild.fetchWebhooks();
const hook = hooks.get(webhook); const hook = hooks.get(webhook);

View File

@ -50,7 +50,7 @@ class SettingsMigrator {
let webhook = null; let webhook = null;
if (version === '3') 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') else if (version === '2')
({ webhook } = settings.chatlogs); ({ webhook } = settings.chatlogs);