Add boilerplate to delete/deploy-commands.js

This commit is contained in:
Michael 2022-12-16 07:00:35 -05:00
parent f26afaf441
commit 8f44aa943e
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,11 @@
/*
* Konpeki Discord Bot - Slash Command Configuration File
* delete-commands.js - Clears all slash commands from Discord to remove any old commands
*
* Code modified based on example from the discord.js guides
* Run `node deploy-commands.js` after this to recreate your slash commands
*/
const { REST, Routes } = require('discord.js'); const { REST, Routes } = require('discord.js');
const { clientId, token } = require('./config.json'); const { clientId, token } = require('./config.json');

View file

@ -1,3 +1,10 @@
/*
* Konpeki Discord Bot - Slash Command Configuration File
* deploy-commands.js - Gathers all current .js files in the commands folder and publishes a list to Discord
*
* Code modified based on example from the discord.js guides
*/
const { REST, Routes } = require('discord.js'); const { REST, Routes } = require('discord.js');
const { clientId, token } = require('./config.json'); const { clientId, token } = require('./config.json');
const fs = require('node:fs'); const fs = require('node:fs');