feat(process): Pull the database at runtime#130
feat(process): Pull the database at runtime#130Covkie wants to merge 3 commits intoOpenAsar:mainfrom
Conversation
CanadaHonk
left a comment
There was a problem hiding this comment.
Do you know if this would work fine even when arrpc is bundled and/or in an asar file?
|
from the Vesktop PR: https://github.com/Vencord/Vesktop/blob/cb342c8c6875dee20937c99ffbf2414d251d4eba/patches/arrpc%403.5.0.patch @CanadaHonk A patch would still be needed for proper location stuff but yes it does work. |
|
|
|
When fetching We can include the time here in our GET with the |

This is preferred as it allows users to always have the latest db without worry & enables embedded arrpc to have the latest db without recompiling; see Vesktop or Legcord
Currently fetches if the database is 24 hours old but maybe check the headers at https://discord.com/api/v9/applications/detectable to see if it is ACTUALLY out of date