summary refs log tree commit diff
path: root/src/models/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 12:01:07 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 12:01:07 +0200
commit0abee6dca4822237626d6dd2767a33c9b9aa295e (patch)
tree2219cedfefa00f6b7c3e7e8bc40afee5718d4682 /src/models/Channel.ts
parent1.2.2 (diff)
downloadserver-0abee6dca4822237626d6dd2767a33c9b9aa295e.tar.xz
:bug: fix Channel + Invite Model
Diffstat (limited to 'src/models/Channel.ts')
-rw-r--r--src/models/Channel.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/models/Channel.ts b/src/models/Channel.ts

index 1b9a167c..bde5256a 100644 --- a/src/models/Channel.ts +++ b/src/models/Channel.ts
@@ -2,7 +2,10 @@ import { Schema, model, Types, Document } from "mongoose"; import db from "../util/Database"; import toBigInt from "../util/toBigInt"; -export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel {} +// @ts-ignore +export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel { + recipients: null | string[]; +} export interface ChannelDocument extends Document, AnyChannel { id: string; @@ -46,6 +49,7 @@ export interface Channel { export interface TextBasedChannel { last_message_id?: string; last_pin_timestamp?: number; + recipients: null; } export interface GuildChannel extends Channel { @@ -67,14 +71,18 @@ export enum ChannelPermissionOverwriteType { member = 1, } -export interface VoiceChannel extends GuildChannel {} +export interface VoiceChannel extends GuildChannel { + video_quality_mode?: number; + bitrate?: number; + user_limit?: number; +} export interface TextChannel extends GuildChannel, TextBasedChannel { nsfw: boolean; rate_limit_per_user: number; topic?: string; } - +// @ts-ignore export interface DMChannel extends Channel, TextBasedChannel { owner_id: string; recipients: string[];