POST /users/@me/channels
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user