From e5f5928f4cbe17ec6168d232e322b925931674e9 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 13 Jun 2022 15:01:38 +0300 Subject: [PATCH] bugfix --- src/structure/components/commands/administration/Import.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structure/components/commands/administration/Import.js b/src/structure/components/commands/administration/Import.js index c4fce86..06d757b 100644 --- a/src/structure/components/commands/administration/Import.js +++ b/src/structure/components/commands/administration/Import.js @@ -52,6 +52,7 @@ class ImportCommand extends SlashCommand { async execute(invoker, { version, overwrite }) { const { subcommand, guild } = invoker; let settings = await guild.settings(); + if (!settings._imported) settings._imported = {}; if (settings._imported[subcommand.name]) return { emoji: 'failure', index: 'COMMAND_IMPORT_IMPORTED', params: { thing: Util.capitalise(subcommand.name) } }; version = version?.value || '3';