POST /users/@me/channels

This commit is contained in:
Intevel ツ
2021-04-24 10:21:40 +02:00
parent ca02ca690b
commit 75461b9f6e
2 changed files with 85 additions and 7 deletions
+19
View File
@@ -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;