reorganize
This commit is contained in:
parent
0aaee0e0f1
commit
d16bec1336
6 changed files with 67 additions and 48 deletions
|
@ -36,16 +36,19 @@ import 'dotenv/config';
|
|||
.addStringOption((option) =>
|
||||
option.setName('id').setDescription('The ID or slug').setRequired(true)
|
||||
),
|
||||
new SlashCommandBuilder()
|
||||
.setName('say')
|
||||
.setDescription('Say someothing through the bot')
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName('content')
|
||||
.setDescription('Just content?')
|
||||
.setRequired(true)
|
||||
),
|
||||
].map((command) => command.toJSON());
|
||||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN!);
|
||||
|
||||
await rest.put(Routes.applicationCommands(process.env.DISCORD_APP!), {
|
||||
body: [],
|
||||
});
|
||||
|
||||
console.log('Successfully deleted all application commands.');
|
||||
|
||||
await rest.put(Routes.applicationCommands(process.env.DISCORD_APP!), {
|
||||
body: commands,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue