mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Added the ability to add/remove slash commands
This commit is contained in:
@@ -13,6 +13,13 @@ export default async (interaction) => {
|
||||
const response = await interaction.followUp("followup!");
|
||||
await delay(2000);
|
||||
response.delete();
|
||||
|
||||
// interaction.client.commands.set({
|
||||
// name: 'none',
|
||||
// description: 'eheheheheh'
|
||||
// });
|
||||
// const delResp = await interaction.client.commands.delete('none');
|
||||
// console.log(delResp);
|
||||
} else {
|
||||
console.log(interaction);
|
||||
}
|
||||
|
||||
@@ -49,4 +49,5 @@ c.on('guildCreate', async (guild) => {
|
||||
|
||||
c.on('ready', () => {
|
||||
console.log("BOT ONLINE!");
|
||||
console.log(c.commands);
|
||||
});
|
||||
Reference in New Issue
Block a user