This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
Replies: 1 comment 1 reply
-
I made changes(not yet applied) to Client Class
I created an issue for this concern #10 As for if you want to have more diversity between guilds without editing the files, I am in the process of creating a similar package that integrates firebase for database. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While da-slash does provide a delete function, it's only setup for commands it created and that still exists.
So if I delete a command's file, I can no longer call it up and delete it, I'd have to recreate the command with the same name, then delete it.
Here's a deleteCommands function that could be added to client.js, allowing you to delete all commands initialized by the bot, either globally or per guild via
await slash.deleteCommands(guild_ids, del_global)
.guild_ids
being an array of guild ids.del_global
being a boolean to delete global commands or not.Function
Usage
Beta Was this translation helpful? Give feedback.
All reactions