From 8a13a1f2ea990d7e1c07138847644653eb0aece6 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 22 May 2021 17:39:28 +0200 Subject: :art: Move member routes in separate files --- src/schema/Member.ts | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'src/schema/Member.ts') diff --git a/src/schema/Member.ts b/src/schema/Member.ts index 49a4d7ce..607d0a06 100644 --- a/src/schema/Member.ts +++ b/src/schema/Member.ts @@ -1,21 +1,29 @@ export const MemberCreateSchema = { id: String, - nick: String, - guild_id: String, - joined_at: Date, + nick: String, + guild_id: String, + joined_at: Date }; export interface MemberCreateSchema { id: string; - nick: string; - guild_id: string; + nick: string; + guild_id: string; joined_at: Date; } export const MemberNickChangeSchema = { - nick: String, -} + nick: String +}; export interface MemberNickChangeSchema { - nick: string, -} \ No newline at end of file + nick: string; +} + +export const MemberChangeSchema = { + $roles: [String] +}; + +export interface MemberChangeSchema { + roles?: string[]; +} -- cgit 1.5.1