Added Dist for Hosting

This commit is contained in:
2024-04-07 12:29:35 +02:00
parent aeb0e5ab2e
commit ac6834e467
20 changed files with 513 additions and 1 deletions

20
dist/src/utils/clearSlashCommands.js vendored Normal file
View File

@@ -0,0 +1,20 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
const discord_js_1 = require("discord.js");
const commands = {};
const rest = new discord_js_1.REST({ version: "10" }).setToken(process.env.TOKEN || "");
(async () => {
try {
console.log("Lösche Alle Commands!");
await rest.put(discord_js_1.Routes.applicationCommands(process.env.CLIENT_ID || ""), { body: commands });
console.log("Alle Commands wurden gelöscht!");
}
catch (error) {
console.log("Es gab einen Fehler beim Zurücksetzen aller Commands");
}
})();