summary refs log tree commit diff
path: root/src/schema
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 17:40:10 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 17:40:10 +0200
commit4715ef1eab99f8158b4ddaa0b9b7bc9a61d0e337 (patch)
treefec7359718bc811992dbfed76377b075c3171017 /src/schema
parent:art: Move member routes in separate files (diff)
downloadserver-4715ef1eab99f8158b4ddaa0b9b7bc9a61d0e337.tar.xz
:sparkles: createChannel()
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/Invite.ts2
-rw-r--r--src/schema/Roles.ts31
2 files changed, 8 insertions, 25 deletions
diff --git a/src/schema/Invite.ts b/src/schema/Invite.ts

index 3c944037..a22449ba 100644 --- a/src/schema/Invite.ts +++ b/src/schema/Invite.ts
@@ -7,7 +7,7 @@ export const InviteCreateSchema = { $temporary: Boolean, $unique: Boolean, $target_user: String, - $target_user_type: Number, + $target_user_type: Number }; export interface InviteCreateSchema { target_user_id?: String; diff --git a/src/schema/Roles.ts b/src/schema/Roles.ts
index fe76dadc..f662e61b 100644 --- a/src/schema/Roles.ts +++ b/src/schema/Roles.ts
@@ -1,34 +1,17 @@ -export const RoleCreateSchema = { - name: String, - permissions: BigInt, - color: Number, - hoist: Boolean, // whether the role should be displayed separately in the sidebar - mentionable: Boolean // whether the role should be mentionable -}; - -export interface RoleCreateSchema { - name: string, - permissions: BigInt, - color: number, - hoist: boolean, // whether the role should be displayed separately in the sidebar - mentionable: boolean // whether the role should be mentionable -} - export const RoleModifySchema = { $name: String, $permissions: BigInt, $color: Number, $hoist: Boolean, // whether the role should be displayed separately in the sidebar $mentionable: Boolean, // whether the role should be mentionable - $position: Number, - + $position: Number }; export interface RoleModifySchema { - name?: string, - permissions?: BigInt, - color?: number, - hoist?: boolean, // whether the role should be displayed separately in the sidebar - mentionable?: boolean, // whether the role should be mentionable - position?: number, + name?: string; + permissions?: BigInt; + color?: number; + hoist?: boolean; // whether the role should be displayed separately in the sidebar + mentionable?: boolean; // whether the role should be mentionable + position?: number; }