This commit is contained in:
MythEclipse
2026-05-17 19:39:46 +07:00
parent c0f66c78a3
commit eda32720c8
4 changed files with 121 additions and 818 deletions
+3 -1
View File
@@ -213,8 +213,10 @@ export async function startWebserver(
getVoiceStatus: () => voiceController.getStatus(),
streamer,
useTranscoder: true,
onBeforeStreamStart: async () => {
onBeforeStreamStart: async (guildId: string, channelId: string) => {
await voiceController.disconnect();
// Wait for Discord gateway to fully process the disconnect
await new Promise((resolve) => setTimeout(resolve, 1500));
},
onAfterStreamEnd: async (guildId: string, channelId: string) => {
const current = voiceController.getStatus();