summary refs log tree commit diff
path: root/dist/models/Member.d.ts
blob: d04886cffaefc706dafd557428920f579c7dff8b (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/// <reference path="../util/MongoBigInt.d.ts" />
import { PublicUser } from "./User";
import { Schema, Document } from "mongoose";
export interface Member {
    id: bigint;
    guild_id: bigint;
    nick?: string;
    roles: bigint[];
    joined_at: number;
    premium_since?: number;
    deaf: boolean;
    mute: boolean;
    pending: boolean;
    permissions: bigint;
    settings: UserGuildSettings;
}
export interface MemberDocument extends Member, Document {
    id: bigint;
}
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;
}
export declare const MemberSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
export declare const MemberModel: import("mongoose").Model<MemberDocument>;
export interface PublicMember extends Omit<Member, "settings" | "id"> {
    user: PublicUser;
}