We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e6a395 commit eff689dCopy full SHA for eff689d
1 file changed
src/util/deploy.ts
@@ -1,12 +1,9 @@
1
-// deploy.ts
2
-import { URL } from 'node:url';
3
import { API } from '@discordjs/core/http-only';
4
import { REST, type RESTPutAPIApplicationCommandsResult } from 'discord.js';
5
import { config } from '../env.js';
6
-import { getCommands } from './loaders.js';
+import { commands } from './loaders.js';
7
8
export async function deployCommands(): Promise<RESTPutAPIApplicationCommandsResult> {
9
- const commands = await getCommands(new URL('../commands/', import.meta.url));
10
const commandData = [...commands.values()].map((command) => command.data);
11
12
const rest = new REST({ version: '10' }).setToken(config.discord.token);
0 commit comments