diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index e6326f2..4a18638 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -64,8 +64,9 @@ class ImportCommand extends SlashCommand { const hooks = await guild.fetchWebhooks(); const hook = hooks.get(webhook); if(hook) await guild.updateWebhook('messages', hook); - } else if(version === '3') { - this.client.storageManager.mongodb.webhooks.updateOne({ feature: 'messages', guild: guild.id }, webhook); + } else if (version === '3') { + delete webhook._id; + await this.client.storageManager.mongodb.webhooks.updateOne({ feature: 'messages', guild: guild.id }, webhook); } }