diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:03:18 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:03:18 +0200 |
commit | a687b489d745c52e207637b6595edcb3eabe8f2d (patch) | |
tree | 98d45b035c2c9589d9702a9a2f442b62f9a3ab99 /rtc/src/models/VoiceState.ts | |
parent | Fix naming (diff) | |
parent | abstract Event emission (diff) | |
download | server-a687b489d745c52e207637b6595edcb3eabe8f2d.tar.xz |
Merge branch 'master' into pr/darkhpp/261-2
Diffstat (limited to 'rtc/src/models/VoiceState.ts')
-rw-r--r-- | rtc/src/models/VoiceState.ts | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/rtc/src/models/VoiceState.ts b/rtc/src/models/VoiceState.ts deleted file mode 100644 index c1f90edd..00000000 --- a/rtc/src/models/VoiceState.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { PublicMember } from "./Member"; -import { Schema, model, Types, Document } from "mongoose"; -import db from "../util/Database"; - -export interface VoiceState extends Document { - guild_id?: string; - channel_id: string; - user_id: string; - session_id: string; - deaf: boolean; - mute: boolean; - self_deaf: boolean; - self_mute: boolean; - self_stream?: boolean; - self_video: boolean; - suppress: boolean; // whether this user is muted by the current user -} - -export const VoiceSateSchema = new Schema({ - guild_id: String, - channel_id: String, - user_id: String, - session_id: String, - deaf: Boolean, - mute: Boolean, - self_deaf: Boolean, - self_mute: Boolean, - self_stream: Boolean, - self_video: Boolean, - suppress: Boolean, // whether this user is muted by the current user -}); - -// @ts-ignore -export const VoiceStateModel = db.model<VoiceState>("VoiceState", VoiceSateSchema, "voicestates"); |