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-05-31 20:32:23 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-31 20:32:23 +0200
commit536900d255ff4306b00903dac1988ca08ce731ee (patch)
tree9c7d24fa946944bf8697e3450b1d45811405a8da /src/schema/Channel.ts
parent:bug: fix getPublicUser (diff)
downloadserver-536900d255ff4306b00903dac1988ca08ce731ee.tar.xz
:construction: dm channels
Diffstat (limited to 'src/schema/Channel.ts')
-rw-r--r--src/schema/Channel.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/schema/Channel.ts b/src/schema/Channel.ts

index a89d5fb3..2cb7f7f4 100644 --- a/src/schema/Channel.ts +++ b/src/schema/Channel.ts
@@ -14,16 +14,16 @@ export const ChannelModifySchema = { id: String, type: new Length(Number, 0, 1), // either 0 (role) or 1 (member) allow: BigInt, - deny: BigInt, - }, + deny: BigInt + } ], $parent_id: String, - $nsfw: Boolean, + $nsfw: Boolean }; export const DmChannelCreateSchema = { $name: String, - recipients: [String], + recipients: new Length([String], 1, 10) }; export interface DmChannelCreateSchema { @@ -52,8 +52,8 @@ export interface ChannelModifySchema { export const ChannelGuildPositionUpdateSchema = [ { id: String, - $position: Number, - }, + $position: Number + } ]; export type ChannelGuildPositionUpdateSchema = {