The integration code, which has remained largely untouched since it was initially written, uses only synchronous function calls to read all of BPM's files from the filesystem before execution inside the discord context.
This causes Discord's load to take several seconds. We should use async fs methods to read the files to alleviate this. This does mean it'll take a few seconds for our search button to pop up and for emotes to actually process and render after the load, but ideally things should just work (they won't just work it's never that simple send help)
The integration code, which has remained largely untouched since it was initially written, uses only synchronous function calls to read all of BPM's files from the filesystem before execution inside the discord context.
This causes Discord's load to take several seconds. We should use async
fs
methods to read the files to alleviate this. This does mean it'll take a few seconds for our search button to pop up and for emotes to actually process and render after the load, but ideally things should just work (they won't just work it's never that simple send help)