summary refs log tree commit diff
path: root/api/src/schema/Member.ts
blob: 607d0a061415c8267ca65da3cf40e4d54220ea12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export const MemberCreateSchema = {
	id: String,
	nick: String,
	guild_id: String,
	joined_at: Date
};

export interface MemberCreateSchema {
	id: string;
	nick: string;
	guild_id: string;
	joined_at: Date;
}

export const MemberNickChangeSchema = {
	nick: String
};

export interface MemberNickChangeSchema {
	nick: string;
}

export const MemberChangeSchema = {
	$roles: [String]
};

export interface MemberChangeSchema {
	roles?: string[];
}