Command comparison
is there a way to manually compare commands versus the api? Like deep comparison how the Framework does it automatically?
4 Replies
Not when also wanting to use the sapphire registry but you can set the overwrite behaviour to bulk overwrite in sapphire. That said I would recommend you instead set it to verbose overwrite and analyse why your commands are seen as different. for all intents and purposes the comparison is quite robust and uses diecordjs on both sides of the equation which means there must something actually being different.
Also pinging @vladdy in here and he wrote the comparison code.
It maybe kinda off-topic but I have noticed that I couldn't pass a newly created slash command builder to
registerChatInput
, it creates the same error as steatlh, where it says type is required to determine the model type. When I pass the builder inside the callback, it just works.
Can you open a separate thread for this and drop reproduction sample pls
Sounds good ill try to make it verbose cuz i understand theres something actually different but i couldnt understand what was different