File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // import { URL } from 'node:url';
2- // import { API } from '@discordjs/core/http-only';
3- // import { REST } from 'discord.js';
4- // import { config } from '../env.js';
5- // import { getCommands } from './loaders.js';
6-
7- // const commands = await getCommands(new URL('../commands/', import.meta.url));
8- // const commandData = [...commands.values()].map((command) => command.data);
9-
10- // const rest = new REST({ version: '10' }).setToken(config.discord.token);
11- // const api = new API(rest);
12-
13- // const result = await api.applicationCommands.bulkOverwriteGlobalCommands(
14- // config.discord.clientId,
15- // commandData
16- // );
17-
18- // console.log(`Successfully registered ${result.length} commands.`);
19-
201// deploy.ts
212import { URL } from 'node:url' ;
223import { API } from '@discordjs/core/http-only' ;
You can’t perform that action at this time.
0 commit comments