From a3fbe6ba7def406719f4a8569eb33a35f9253bd1 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 26 May 2021 22:38:21 +0200 Subject: [PATCH] :sparkles: add Team --- src/models/Team.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/models/Team.ts diff --git a/src/models/Team.ts b/src/models/Team.ts new file mode 100644 index 00000000..795c82d2 --- /dev/null +++ b/src/models/Team.ts @@ -0,0 +1,17 @@ +export interface Team { + icon: string | null; + id: string; + members: { + membership_state: number; + permissions: string[]; + team_id: string; + user_id: string; + }[]; + name: string; + owner_user_id: string; +} + +export enum TeamMemberState { + INVITED = 1, + ACCEPTED = 2, +}