Automatically delete a old slash command that has been renamed?
How would I achieve this, I am using sapphire 3.1.3, and I want it to automatically delete the old one when it detects a change.
ready listener you could check which commands are in the Command store and which you can find through the DJS application commands methods, diff those lists and remove any that are not in the Commands storeidHintsclient.application?.commands.cache.forEach((command: ApplicationCommand) => {command.delete()})client.application?.commands.set([])client.application?.commands.set([]);container.stores.get('commands')