shipgirlproject / Shoukaku

A stable, powerful and updated wrapper around Lavalink
https://guide.shoukaku.shipgirl.moe/
MIT License
273 stars 84 forks source link

TypeError: Cannot read properties of null (reading 'deficit') #191

Closed blackink7777 closed 2 weeks ago

blackink7777 commented 2 weeks ago

TypeError: Cannot read properties of null (reading 'deficit') occurs when I try to use const frameDeficit = stats.frameStats.deficit, I'm not sure if this is a bug or a type definition error because the editor didn't tell me that this might be undefined.

 const memoryUsage = stats.memory.used / stats.memory.allocated;
 const cpuLoad = stats.cpu.lavalinkLoad;
 const frameDeficit = stats.frameStats.deficit;
Deivu commented 2 weeks ago

Should be fixed in latest commits / 4.1.0