This commit is contained in:
Erik 2022-04-25 16:25:40 +03:00
parent 693c876027
commit d2cf41b28f
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -66,6 +66,7 @@ class ImportCommand extends SlashCommand {
if(hook) await guild.updateWebhook('messages', hook); if(hook) await guild.updateWebhook('messages', hook);
} else if (version === '3') { } else if (version === '3') {
delete webhook._id; delete webhook._id;
delete webhook.feature;
await this.client.storageManager.mongodb.webhooks.updateOne({ feature: 'messages', guild: guild.id }, webhook); await this.client.storageManager.mongodb.webhooks.updateOne({ feature: 'messages', guild: guild.id }, webhook);
} }
} }