diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-14 20:16:49 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-14 20:16:49 +0100 |
commit | 86700f88abe1ca2d811169316443c5339484b72e (patch) | |
tree | be92e061aa75589d16aa3279365fb0014ed4d0fe /dist/models/Member.d.ts | |
parent | :bug: fix PermissionResolvable (diff) | |
download | server-86700f88abe1ca2d811169316443c5339484b72e.tar.xz |
:bug: fix public member type
Diffstat (limited to 'dist/models/Member.d.ts')
-rw-r--r-- | dist/models/Member.d.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/models/Member.d.ts b/dist/models/Member.d.ts index e4fc1fa7..d04886cf 100644 --- a/dist/models/Member.d.ts +++ b/dist/models/Member.d.ts @@ -1,7 +1,7 @@ /// <reference path="../util/MongoBigInt.d.ts" /> import { PublicUser } from "./User"; import { Schema, Document } from "mongoose"; -export interface Member extends Document { +export interface Member { id: bigint; guild_id: bigint; nick?: string; @@ -14,6 +14,9 @@ export interface Member extends Document { permissions: bigint; settings: UserGuildSettings; } +export interface MemberDocument extends Member, Document { + id: bigint; +} export interface UserGuildSettings { channel_overrides: { channel_id: bigint; @@ -34,7 +37,7 @@ export interface MuteConfig { selected_time_window: number; } export declare const MemberSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const MemberModel: import("mongoose").Model<Member>; +export declare const MemberModel: import("mongoose").Model<MemberDocument>; export interface PublicMember extends Omit<Member, "settings" | "id"> { user: PublicUser; } |