From ebe179696d1f190c4dbba5edc8aa23514302dd84 Mon Sep 17 00:00:00 2001 From: ItsMias Date: Thu, 19 Feb 2026 01:36:08 +0100 Subject: [PATCH] fix: restrict /import command to guild owner only The /import command wipes all XP data for a guild and reimports from Mee6. Without a permission check, any server member could trigger it. Added `options: { guildOwnerOnly: true }` to match other Owner commands. --- src/commands/Owner/import.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/Owner/import.ts b/src/commands/Owner/import.ts index 738dff4..b42485d 100644 --- a/src/commands/Owner/import.ts +++ b/src/commands/Owner/import.ts @@ -25,6 +25,9 @@ export default new NetLevelBotCommand({ ], dm_permission: false }, + options: { + guildOwnerOnly: true + }, callback: async (client, interaction) => { if (!interaction.guild) return;