summary refs log tree commit diff
path: root/src/schema/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-24 12:49:12 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-24 12:49:12 +0200
commitfe8a1c10005cc3becacf0c9601ecdc17f2a86e30 (patch)
tree5b406a7f497d05eb137ea8a0374e813a7bb904e1 /src/schema/Channel.ts
parent:bug: fix type in Channel Messages (diff)
parentUpdate channels.ts (diff)
downloadserver-fe8a1c10005cc3becacf0c9601ecdc17f2a86e30.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-api
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;