From 5d0d9bce08bddd96c0db5cd287b83d33280a54e2 Mon Sep 17 00:00:00 2001 From: Supositware Date: Wed, 12 Jun 2024 00:31:02 +0200 Subject: [PATCH] prepare for user applications --- scripts/deploy-commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/deploy-commands.js b/scripts/deploy-commands.js index 77359765..cd59c831 100644 --- a/scripts/deploy-commands.js +++ b/scripts/deploy-commands.js @@ -18,6 +18,10 @@ for (let i = 0; i < categoryPath.length; i++) { for (const file of commandFiles) { const filePath = path.join(commandsPath, file); const command = await import(filePath); + + if (command.default.data.name === 'download') { + Object.assign(command.default.data, { integration_types: [0, 1] }); + } commands.push(command.default.data.toJSON()); } }