summary refs log tree commit diff
path: root/dist/models/Member.d.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
commit673e691c6e26a0abbadb93cf8ef4b1e45ad1accc (patch)
tree8496623a70f192e4e88ec487e38e0f6c284dc883 /dist/models/Member.d.ts
parent:sparkles: updated other models (diff)
downloadserver-673e691c6e26a0abbadb93cf8ef4b1e45ad1accc.tar.xz
:wrench: build
Diffstat (limited to 'dist/models/Member.d.ts')
-rw-r--r--dist/models/Member.d.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/dist/models/Member.d.ts b/dist/models/Member.d.ts
index 927f9337..379bfced 100644
--- a/dist/models/Member.d.ts
+++ b/dist/models/Member.d.ts
@@ -1,3 +1,4 @@
+import { PublicUser } from "./User";
 export interface Member {
     id: bigint;
     nick?: string;
@@ -8,4 +9,27 @@ export interface Member {
     mute: boolean;
     pending: boolean;
     permissions: bigint;
+    settings: UserGuildSettings;
+}
+export interface PublicMember extends Omit<Member, "settings" | "id"> {
+    user: PublicUser;
+}
+export interface UserGuildSettings {
+    channel_overrides: {
+        channel_id: bigint;
+        message_notifications: number;
+        mute_config: MuteConfig;
+        muted: boolean;
+    }[];
+    message_notifications: number;
+    mobile_push: boolean;
+    mute_config: MuteConfig;
+    muted: boolean;
+    suppress_everyone: boolean;
+    suppress_roles: boolean;
+    version: number;
+}
+export interface MuteConfig {
+    end_time: number;
+    selected_time_window: number;
 }