forgot to await a promise
This commit is contained in:
parent
fa66e296f4
commit
7cc253ae26
@ -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);
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user