This commit is contained in:
Erik 2022-06-13 15:01:38 +03:00
parent 55d9303d5d
commit e5f5928f4c
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

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