application command registry saying it takes 40 seconds to initalise

the title
No description
36 Replies
nicklvh
nicklvhOP11mo ago
and it keeps saying it finds differences between api command and my commands every time i start the bot but i never change anything like that
fenix
fenix11mo ago
Do you have the command IDs that are registered in the ‘idHints’?
nicklvh
nicklvhOP11mo ago
i tried with and without and the same thing happens sapphire has been very buggy for some reason
Favna
Favna11mo ago
This is partially because of networking and partially because of comparisons. Setting idHints definitely should speed it up, but if you're really concerned about it then use bulk overwrite method.
nicklvh
nicklvhOP11mo ago
well im concerned because its saying its finding differences and my network is good unless its on discords side same thing happened when i had idHints enabled too
Favna
Favna11mo ago
Please show the code of a command that has this issue It is entirely possible that @vladdy 's comparison logic needs fixing
nicklvh
nicklvhOP11mo ago
okay
vladdy
vladdy11mo ago
i wouldn't put it past me xD
nicklvh
nicklvhOP11mo ago
No description
vladdy
vladdy11mo ago
hmm interesting
nicklvh
nicklvhOP11mo ago
its saying its finding differences for every command i do
nicklvh
nicklvhOP11mo ago
GitHub
GitHub - nicklvh/joewy: Multi-purpose discord bot made in TypeScrip...
Multi-purpose discord bot made in TypeScript, Discord.js and Sapphire - nicklvh/joewy
Favna
Favna11mo ago
Oh hm but that's a very simple one. I had half expected something complex.
nicklvh
nicklvhOP11mo ago
but its for every command not juse this one
vladdy
vladdy11mo ago
must be some builders shenanigans can you set the default overwrite behavior to verbose overwrite and send the debug logs?
nicklvh
nicklvhOP11mo ago
okay
nicklvh
nicklvhOP11mo ago
No description
nicklvh
nicklvhOP11mo ago
this is what it says i have no idea what integration types are
vladdy
vladdy11mo ago
well that helps me enough eugh ok i'll look into it unless someones faster
Favna
Favna11mo ago
The API or builders implicitly sets integration types?
vladdy
vladdy11mo ago
i think builders might? i need to check
Favna
Favna11mo ago
For now the immediate fix is probably to use bulk overwrite mode @iaqi Unless that conflicts with your bot setup but there are few scenarios where it does
nicklvh
nicklvhOP11mo ago
okay
kyra
kyra10mo ago
cc: @vladdy
nicklvh
nicklvhOP10mo ago
im still getting this issue btw
EvolutionX
EvolutionX9mo ago
@Boomeravna @vladdy the issue didn't exist until i changed .setDMPermission to .setContext([InteractionContextType.Guild])
No description
EvolutionX
EvolutionX9mo ago
No description
EvolutionX
EvolutionX9mo ago
understood, this is becuz the comparison algorithm is not updated to check dmpermission replacement setContexts does that mean im stuck with dmPermission :wtfummm: @iaqi did you do something?
vladdy
vladdy9mo ago
Wtff Ok I'll check Do y'all have some command samples
EvolutionX
EvolutionX9mo ago
just make a simple ping command with .setContext, you should get the same result in logs if you are busy I could try checking this file https://github.com/sapphiredev/framework/blob/71fc3a427a29319b6f0b9e115fceed9124b1625b/src/lib/utils/application-commands/ApplicationCommandRegistry.ts#L26 but if you can fix it, you'll obviously do it faster than me :pepeCry:
nicklvh
nicklvhOP9mo ago
wdym
EvolutionX
EvolutionX9mo ago
for the slow time of registries
nicklvh
nicklvhOP9mo ago
i just started using bulk overwrite instead
EvolutionX
EvolutionX9mo ago
💀 I'll get vladdy to fix it
Prosta4ok_ua
Prosta4ok_ua9mo ago
oh, i maybe have the same problem 👀
Ansy Wonhalf
Ansy Wonhalf2w ago
I have the same problem. It's saying all my global commands are different because I set a context and not a dmPermission, and it's expecting a dmPermission to be true but my context being Guild only, it's false.

Did you find this page helpful?