merge scripts
This commit is contained in:
parent
01ce9ad000
commit
6785418c3c
3 changed files with 7 additions and 11 deletions
|
@ -5,6 +5,7 @@
|
|||
"scripts": {
|
||||
"dev": "NODE_ENV=development tsx watch src/index.ts",
|
||||
"start": "tsx src/index.ts",
|
||||
"reupload": "tsx src/_reupload.ts",
|
||||
"lint": "tsc --noEmit && eslint **/*.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
import { REST } from '@discordjs/rest';
|
||||
import { Routes } from 'discord.js';
|
||||
|
||||
import 'dotenv/config';
|
||||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN!);
|
||||
|
||||
rest
|
||||
.put(Routes.applicationCommands('977174139297230888'), { body: [] })
|
||||
.then(() => console.log('Successfully deleted all application commands.'))
|
||||
.catch(console.error);
|
|
@ -34,6 +34,12 @@ import 'dotenv/config';
|
|||
|
||||
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN!);
|
||||
|
||||
await rest.put(Routes.applicationCommands('977174139297230888'), {
|
||||
body: [],
|
||||
});
|
||||
|
||||
console.log('Successfully deleted all application commands.');
|
||||
|
||||
await rest.put(Routes.applicationCommands('977174139297230888'), {
|
||||
body: commands,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue