Sapphire registering applications bug
So I updated sapphire to the latest version and when i start my bot the ApplicationCommand registering keeps thinking that there is differences found in every single command (Provided few screenshots)
56 Replies
@vladdy
Also please provide code or preferably a small repo where the issue can be reproduced @Stealth
How do i provide code? Im confused because this happens with the package itself not my bots code.
They're your bots commands so yes they happen with your bot. Sapphire doesn't have any internal commands.
No no. The problem is that Sapphire thinks my already existing registered application commands have differences on every launch even though i havent modified them at all
Yes so please provide the code to some of the commands...
1. Send the commands that were found to be different
2. Use VerboseOverwrite as your default behavior when present
Let me find the guide for you
Sapphire Framework
Configuring the global behavior when commands are not identical | S...
Configuring the global behavior is easy! You just need to import the
Every single command finds to be different
Read my initial post
Please
The screenshots you shared show only the profile command saying it found differences
Others say they are identical
Please use VerboseOverwrite as I said and send the logs in a gist or similar 🙏
This log happens without me editing any commands
You didnt use verboseOverwrite
@Stealth Please set the defaultBehavior to VerboseOverwrite, then send logs
I did
No?
Im sorry
I will do that when i get on my pc
no worries
Here is the new log
oh wait nvm
it's still going
By looking at the log i noticed what's wrong with it, so pretty much every command has this sissue
@vladdy I did it
you can @ me anytime when you look at my issue
Oh perfect, ty that's all i need
Any fix?
or it's framework issue
Its a small bug in framework, I'll fix it when i get some time
Can i contribute?
I mean yeah but it's somewhere in the depths of computer difference
Damn ill try if not, what can i do meanwhile? Any like temp fix?
Well considering its a non issue, you can just ignore it for now
Sounds good ty it does take 100k/ms to load the registry lool just fyi
I appreciate your responses ^^
Alright so
Ignoring it rlly doesnt work because the framework is not updating my commands when i modify them :/ @vladdy i hope it's okay that im @ ing you
I don't mind the @s, dw, but the command should still modify
Are you sureee its not updating? Bc that's a bigger issue
Yea because i have updated it and it didnt update at all for hours now
i thought it was discord api being slow but it's still havent updated
uh
thats a bigger issue lol
this is the code
"agents" never appears
whats your default behavior?
by default it updates
wait a new command hasn't appeared?
on launch
nope
the agents subcommand has not appeared
oh
its a subcmd
ok
other pre existing commands before this bug still works
Ill run it again with VerboseOverwrite
Nothing about subcommand
WAit now it worked
hm
Weird
it should've logged the subcmd too h m m m
Not gonna lie im confused as hell
Possibly from the new updates where CJS and stuff happen?
ill reinstall the framework
right now
same issue
with the api versus stuff
theres no fix for it yet, patience pls
nah the ESM / CJS split shouldnt matter, as long as all your packages are up-to-date. If you use subcommands I cannot say for certain if @kaname-png's plugin is updated, but the sapphire one definitely is. That said, around the same time we shipped changed to compute difference of application commands so that is more likely related.
All good dw im patient
Solution
@sapphire/framework@pr-701
try this pls
otherwise it seems to work fine
I will when i can i cant rn im sorry
yeah no worries
i tried it on my bot and it seems to fix the wrong defaultMemberPermission found issue
Also where can i ask a question about getting my bot on the /tag?
Im just curious what are the requirements
you can PR it to the tags repo
No requirements?
well
we have some
mostly that its open source
Thats fine sounds good. Thank you. I need to flesh out some things and then ill try it ^^ I wont bring that topic up in here anymore since its not related to the issue ty for answers tho