mirror of
https://github.com/TheShadowEevee/Konpeki-Discord-Bot.git
synced 2025-01-11 14:38:49 -06:00
Add boilerplate to delete/deploy-commands.js
This commit is contained in:
parent
f26afaf441
commit
8f44aa943e
2 changed files with 15 additions and 0 deletions
|
@ -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 { clientId, token } = require('./config.json');
|
||||
|
||||
|
|
|
@ -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 { clientId, token } = require('./config.json');
|
||||
const fs = require('node:fs');
|
||||
|
|
Loading…
Reference in a new issue