Skip to content

Commit eff689d

Browse files
committed
fix: Fix deploy.ts to use the exported commands Map
1 parent 8e6a395 commit eff689d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/util/deploy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
// deploy.ts
2-
import { URL } from 'node:url';
31
import { API } from '@discordjs/core/http-only';
42
import { REST, type RESTPutAPIApplicationCommandsResult } from 'discord.js';
53
import { config } from '../env.js';
6-
import { getCommands } from './loaders.js';
4+
import { commands } from './loaders.js';
75

86
export async function deployCommands(): Promise<RESTPutAPIApplicationCommandsResult> {
9-
const commands = await getCommands(new URL('../commands/', import.meta.url));
107
const commandData = [...commands.values()].map((command) => command.data);
118

129
const rest = new REST({ version: '10' }).setToken(config.discord.token);

0 commit comments

Comments
 (0)