summary refs log tree commit diff
path: root/src/schema/Channel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/schema/Channel.ts')
-rw-r--r--src/schema/Channel.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/schema/Channel.ts b/src/schema/Channel.ts

index 0fafc54d..3a22872a 100644 --- a/src/schema/Channel.ts +++ b/src/schema/Channel.ts
@@ -1,3 +1,4 @@ +import { ChannelType } from "@fosscord/server-util"; import { Length } from "../util/instanceOf"; export const ChannelModifySchema = { @@ -20,6 +21,24 @@ export const ChannelModifySchema = { $nsfw: Boolean, }; +export const DmChannelCreateSchema = { + owner_id: String, + $id: String, + $created_at: Date, + name: String, + type: Number, + recipients: [String] +} + +export interface DmChannelCreateSchema { + owner_id: String; + id?: String; + created_at?: Date; + name: String; + type: Number; + recipients: String[]; +} + export interface ChannelModifySchema { name: string; type: number;