PrimaShouji / Prima2

The Discord bot.
Apache License 2.0
0 stars 4 forks source link

Skip slash command creation if there are no changes to make in a command #33

Closed karashiiro closed 1 year ago

karashiiro commented 3 years ago

Recreating a slash command makes it break the first time you use it after that, which will cause the client to fetch the updated slash command information so that everything works. If command IDs are stored in the database, then commands can be fetched and checked for changes from what we want to create in order to avoid this where it is not necessary,