diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index 960c9b8..e6326f2 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -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); diff --git a/src/utilities/SettingsMigrator.js b/src/utilities/SettingsMigrator.js index 907f27e..19e5128 100644 --- a/src/utilities/SettingsMigrator.js +++ b/src/utilities/SettingsMigrator.js @@ -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);