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';