Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

Rhys
Rhys12/2/2022
Detect HMR Reload

Hey! Is there any way to detect when HMR https://www.npmjs.com/package/@sapphire/plugin-hmr has run on my code? I need to refresh some stale data when it runs

Thanks!
Rhys
Rhys12/2/2022
Link to the repository also just to help provide additional context incase it's needed https://github.com/AnswerOverflow/AnswerOverflow/tree/Turbo-Repo-Base
kaname-png
kaname-png12/2/2022
Btw
Since you are the owner of the bot
It would be great about the consent of the users' messages, on the web only their names and avatars would be hidden, but not the content of the message

I say that because a lot of context is lost since even the content of the message is hidden
Rhys
Rhys12/2/2022
Yeah that’s a bit of a tricky once since discords ToS is pretty restrictive on how you handle user data - Answer Overflow is made currently to follow that as closely as possible once it grows a bit and I’ve got more of communication channel w/ discord people I’ll see what I can do

Solution Message

Favna
Favna12/2/2022
We currently do not emit any events back to sapphire on reloads but a PR for that would be accepted.
Rhys
Rhys12/2/2022
Good to know thanks! I'll take a look into making a PR
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy