Handling BulkOverwrite Registry Errors
When I encounter this error
I want to be able to capture this error and take an action. In this case update my record of guilds to remove the inaccessible guild.
I've tried to capture the errors using the
error
event listener as well as one on commandApplicationCommandRegistryError
however neither seems to be called when this error occurs. What is the recommended way to listen for these BulkOverwrite error events?
Example listeners which are never called:
16 Replies
@A Vladdy
Did I do a dumb and forgot to handle this?
Yes, yes i did
I made it just log
Thx for the report, I'll have a pr to add this to an event hopefully this week
Thanks @Vladdy appreciate the response and fast turnaround!
@kyle13 I've opened https://github.com/sapphiredev/framework/pull/622, should work, you can install the packed version and test it out sometime
@A Vladdy the code fix looks like it will solve the issue. I'm just not sure how to "install the packed version" to test it out. I tried checking out the branch, building it and using npm link, but it seems like it can't resolve the types for my project when used that way. Any advice on how to install and test out your fix? Also is there a timeline on when this would be added to a release? Thanks so much for your help!
we packed the release for you
oh
shit
@Favna
this is badd
Im gonna try a rerun
sup?
what happened?
sapphire pack never finished
wait it did
it never responded tho
you have to run
npm run prepack
when you want to link
otherwise it doesnt build a proper bundle @sapphire/[email protected]
anyway yeah I noticed that before as well
I need to look into it I guess
@A Vladdy can you create a GH issue on the repo and assign me so I dont forget?
sapphiredev/sapphiredev
on it
tyvm
mf disabled issues
🤡
what
🤡
Thank you @Vladdy and @Favna for your outstanding support! I was able to download the test version and verify adding a listener lets me capture the bulk overwrite errors perfectly. I'll go ahead and mark this request as solved.