Don't rely on lavacord eris helper package, another pagination fix attempt, make cowsay use a different lib

This commit is contained in:
TheEssem 2021-03-05 12:06:22 -06:00
parent 45bb53d521
commit 2499fb2a3b
7 changed files with 4705 additions and 671 deletions

16
events/rawWS.js Normal file
View file

@ -0,0 +1,16 @@
const player = require("../utils/soundplayer.js");
// run when a raw packet is sent, used for sending data to lavalink
module.exports = async (packet) => {
switch (packet.t) {
case "VOICE_SERVER_UPDATE":
await player.manager.voiceServerUpdate(packet.d);
break;
case "VOICE_STATE_UPDATE":
await player.manager.voiceStateUpdate(packet.d);
break;
case "GUILD_CREATE":
for (const state of packet.d.voice_states) await player.manager.voiceStateUpdate({ ...state, guild_id: packet.d.id });
break;
}
};