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.
idHints will lose its use case when that is configured.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 storeclient.application?.commands.cache.forEach((command: ApplicationCommand) => {command.delete()})client.application?.commands.set([]) I think this works tooclient.application?.commands.set([]);container.stores.get('commands') which is https://www.sapphirejs.dev/docs/Documentation/api-framework/classes/CommandStore so you can compare names for example