reupload commands every single time

This commit is contained in:
Ryan Cao 2022-08-29 14:57:51 +08:00
parent d1377b538d
commit acd576343b
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
2 changed files with 11 additions and 8 deletions

View file

@ -2,9 +2,7 @@ import { SlashCommandBuilder, Routes, PermissionFlagsBits } from 'discord.js';
import { REST } from '@discordjs/rest';
import { getTags } from './tagsTags';
import 'dotenv/config';
(async () => {
export const reuploadCommands = async () => {
const tags = await getTags();
const commands = [
@ -55,7 +53,4 @@ import 'dotenv/config';
});
console.log('Successfully registered application commands.');
})().catch((e) => {
console.error(e);
process.exit(1);
});
};