feat: /debug and /help

This commit is contained in:
TresAbhi committed 2023-04-26 14:23:42 +00:00
1 parent 91260aed2a
commit c37b90caac
11 files changed
+110 -10

No files matched your search

+4 -2
View File
@@ -25,8 +25,10 @@ export interface CommandRegistry {
export const rest = new REST().setToken(process.env.DISCORD_TOKEN!);
const commandFolders = readdirSync('src/commands/');
const commandCollection = new Collection<string, CommandRegistry>();
const guildCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] = [];
const publicCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] = [];
export const guildCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] =
[];
export const publicCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] =
[];
for (const file of commandFolders) {
const command = (await import(`../commands/${file}`))