Empty DSRV Context Values IllegalArgumentException
Laarryy opened this issue ยท 2 comments
Description
Empty DSRV contexts throw errors when calculating potential contexts for editor session
Reproduction steps
- Install LP and DSRV
- run
/lp editor
- See error: https://paste.gg/p/anonymous/7d9ca3d66e2d474898b7f56ee284f73e
Expected behaviour
No empty contexts, or, if present, no error.
Environment details
Precise details unknown, sadly.
Any other relevant details
Reported by a user. Perhaps a decent fix is to have empty contexts simply be disqualified when calculating for the editor, and not throw errors. Honestly not even sure if this should be something done on LP's end or something with a root cause fixed on DSRV's. Jsut wanted to let ya know :)
This is an issue in the code I PRed to DiscordSRV, woops.
Seems like a fix has already been implemented - it just needs to be applied to the estimatePotentialContexts method too - DiscordSRV/DiscordSRV@2a6c027
Perhaps if you ask nicely they'll copy it over, if not I'll try get around to PRing the change soon.
I asked nicely and they fixed it! DiscordSRV/DiscordSRV#856