don't need this

This commit is contained in:
dank074 2025-05-06 23:19:14 -05:00
parent 7b5dac445a
commit 11bb278c02
2 changed files with 0 additions and 7 deletions

View File

@ -56,9 +56,6 @@ export async function onIdentify(this: WebRtcWebSocket, data: VoicePayload) {
if (voiceState) {
type = voiceState.guild_id === server_id ? "guild-voice" : "dm-voice";
authenticated = true;
this.guild_id =
type === "guild-voice" ? voiceState.guild_id : undefined;
this.channel_id = voiceState.channel_id;
} else {
// if its not a guild/dm voice connection, check if it is a go live stream
const streamSession = await StreamSession.findOne({
@ -78,8 +75,6 @@ export async function onIdentify(this: WebRtcWebSocket, data: VoicePayload) {
streamSession.used = true;
await streamSession.save();
this.channel_id = streamSession.stream.channel_id;
this.once("close", async () => {
await streamSession.remove();
});

View File

@ -3,7 +3,5 @@ import type { WebRtcClient } from "spacebar-webrtc-types";
export interface WebRtcWebSocket extends WebSocket {
type: "guild-voice" | "dm-voice" | "stream";
guild_id?: string;
channel_id: string;
webRtcClient?: WebRtcClient<WebRtcWebSocket>;
}