diff --git a/dist/models/Activity.d.ts b/dist/models/Activity.d.ts
index 72c4a890..4d1ffff6 100644
--- a/dist/models/Activity.d.ts
+++ b/dist/models/Activity.d.ts
@@ -1,5 +1,6 @@
import { User } from "..";
import { ClientStatus, Status } from "./Status";
+import { Types } from "mongoose";
export interface Presence {
user: User;
guild_id?: bigint;
@@ -42,6 +43,41 @@ export interface Activity {
instance?: boolean;
flags?: bigint;
}
+export declare const Activity: {
+ name: StringConstructor;
+ type: NumberConstructor;
+ url: StringConstructor;
+ created_at: NumberConstructor;
+ timestamps: {
+ start: NumberConstructor;
+ end: NumberConstructor;
+ }[];
+ application_id: typeof Types.Long;
+ details: StringConstructor;
+ state: StringConstructor;
+ emoji: {
+ name: StringConstructor;
+ id: typeof Types.Long;
+ amimated: BooleanConstructor;
+ };
+ party: {
+ id: StringConstructor;
+ size: NumberConstructor[];
+ };
+ assets: {
+ large_image: StringConstructor;
+ large_text: StringConstructor;
+ small_image: StringConstructor;
+ small_text: StringConstructor;
+ };
+ secrets: {
+ join: StringConstructor;
+ spectate: StringConstructor;
+ match: StringConstructor;
+ };
+ instance: BooleanConstructor;
+ flags: typeof Types.Long;
+};
export declare enum ActivityType {
GAME = 0,
STREAMING = 1,
diff --git a/dist/models/Activity.js b/dist/models/Activity.js
index ddb15100..33476880 100644
--- a/dist/models/Activity.js
+++ b/dist/models/Activity.js
@@ -1,6 +1,44 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.ActivityType = void 0;
+exports.ActivityType = exports.Activity = void 0;
+const mongoose_1 = require("mongoose");
+exports.Activity = {
+ name: String,
+ type: Number,
+ url: String,
+ created_at: Number,
+ timestamps: [
+ {
+ start: Number,
+ end: Number,
+ },
+ ],
+ application_id: mongoose_1.Types.Long,
+ details: String,
+ state: String,
+ emoji: {
+ name: String,
+ id: mongoose_1.Types.Long,
+ amimated: Boolean,
+ },
+ party: {
+ id: String,
+ size: [Number, Number],
+ },
+ assets: {
+ large_image: String,
+ large_text: String,
+ small_image: String,
+ small_text: String,
+ },
+ secrets: {
+ join: String,
+ spectate: String,
+ match: String,
+ },
+ instance: Boolean,
+ flags: mongoose_1.Types.Long,
+};
var ActivityType;
(function (ActivityType) {
ActivityType[ActivityType["GAME"] = 0] = "GAME";
diff --git a/dist/models/Activity.js.map b/dist/models/Activity.js.map
index 5146d527..2b9b6677 100644
--- a/dist/models/Activity.js.map
+++ b/dist/models/Activity.js.map
@@ -1 +1 @@
-{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../src/models/Activity.ts"],"names":[],"mappings":";;;AA+CA,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,+CAAQ,CAAA;IACR,yDAAa,CAAA;IACb,yDAAa,CAAA;IACb,mDAAU,CAAA;IACV,yDAAa,CAAA;AACd,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
\ No newline at end of file
+{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../src/models/Activity.ts"],"names":[],"mappings":";;;AAEA,uCAA0D;AA8C7C,QAAA,QAAQ,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE;QACX;YACC,KAAK,EAAE,MAAM;YACb,GAAG,EAAE,MAAM;SACX;KACD;IACD,cAAc,EAAE,gBAAK,CAAC,IAAI;IAC1B,OAAO,EAAE,MAAM;IACf,KAAK,EAAE,MAAM;IACb,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,QAAQ,EAAE,OAAO;KACjB;IACD,KAAK,EAAE;QACN,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACtB;IACD,MAAM,EAAE;QACP,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;QAClB,WAAW,EAAE,MAAM;QACnB,UAAU,EAAE,MAAM;KAClB;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,MAAM;KACb;IACD,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,gBAAK,CAAC,IAAI;CACjB,CAAC;AAEF,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,+CAAQ,CAAA;IACR,yDAAa,CAAA;IACb,yDAAa,CAAA;IACb,mDAAU,CAAA;IACV,yDAAa,CAAA;AACd,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
\ No newline at end of file
diff --git a/dist/models/Channel.d.ts b/dist/models/Channel.d.ts
index efd0c226..6caf7238 100644
--- a/dist/models/Channel.d.ts
+++ b/dist/models/Channel.d.ts
@@ -1,17 +1,17 @@
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface ChannelDocument extends Channel, DMChannel, TextChannel, VoiceChannel, Document {
+ id: bigint;
+}
+export declare const ChannelSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const ChannelModel: import("mongoose").Model<ChannelDocument>;
export interface Channel {
id: bigint;
created_at: number;
name: string;
type: number;
- read_state: ReadState[];
-}
-export interface ReadState {
- last_message_id: bigint;
- last_pin_timestamp: number;
- mention_count: number;
}
export interface TextBasedChannel {
- messages: any[];
last_message_id?: bigint;
last_pin_timestamp?: number;
}
diff --git a/dist/models/Channel.js b/dist/models/Channel.js
index bb49127d..d4b50395 100644
--- a/dist/models/Channel.js
+++ b/dist/models/Channel.js
@@ -1,6 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.ChannelType = void 0;
+exports.ChannelType = exports.ChannelModel = exports.ChannelSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.ChannelSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ created_at: { type: mongoose_1.Schema.Types.Date, required: true },
+ name: { type: String, required: true },
+ type: { type: Number, required: true },
+ guild_id: mongoose_1.Types.Long,
+ owner_id: mongoose_1.Types.Long,
+ parent_id: mongoose_1.Types.Long,
+ recipients: [mongoose_1.Types.Long],
+ position: Number,
+ last_message_id: mongoose_1.Types.Long,
+ last_pin_timestamp: Date,
+ nsfw: Boolean,
+ rate_limit_per_user: Number,
+ topic: String,
+ permission_overwrites: [
+ {
+ allow: mongoose_1.Types.Long,
+ deny: mongoose_1.Types.Long,
+ id: mongoose_1.Types.Long,
+ type: Number,
+ },
+ ],
+});
+exports.ChannelModel = mongoose_1.model("Channel", exports.ChannelSchema, "channels");
var ChannelType;
(function (ChannelType) {
ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
diff --git a/dist/models/Channel.js.map b/dist/models/Channel.js.map
index fdb6f6a0..768272eb 100644
--- a/dist/models/Channel.js.map
+++ b/dist/models/Channel.js.map
@@ -1 +1 @@
-{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":";;;AA6CA,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAM,CAAA;IACN,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,2DAAe,CAAA;AAChB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"}
\ No newline at end of file
+{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAM7C,QAAA,aAAa,GAAG,IAAI,iBAAM,CAAC;IACvC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,SAAS,EAAE,gBAAK,CAAC,IAAI;IACrB,UAAU,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,gBAAK,CAAC,IAAI;IAC3B,kBAAkB,EAAE,IAAI;IACxB,IAAI,EAAE,OAAO;IACb,mBAAmB,EAAE,MAAM;IAC3B,KAAK,EAAE,MAAM;IACb,qBAAqB,EAAE;QACtB;YACC,KAAK,EAAE,gBAAK,CAAC,IAAI;YACjB,IAAI,EAAE,gBAAK,CAAC,IAAI;YAChB,EAAE,EAAE,gBAAK,CAAC,IAAI;YACd,IAAI,EAAE,MAAM;SACZ;KACD;CACD,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,gBAAK,CAAkB,SAAS,EAAE,qBAAa,EAAE,UAAU,CAAC,CAAC;AAuCzF,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAM,CAAA;IACN,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,2DAAe,CAAA;AAChB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"}
\ No newline at end of file
diff --git a/dist/models/Emoji.d.ts b/dist/models/Emoji.d.ts
index e2f639db..91c1abfe 100644
--- a/dist/models/Emoji.d.ts
+++ b/dist/models/Emoji.d.ts
@@ -1,12 +1,15 @@
-export interface Emoji {
- allNamesString: string;
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface Emoji extends Document {
+ id: bigint;
animated: boolean;
available: boolean;
- guildId: bigint;
- id: bigint;
+ guild_id: bigint;
managed: boolean;
name: string;
require_colons: boolean;
url: string;
- roles: [];
+ roles: bigint[];
}
+export declare const EmojiSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const EmojiModel: import("mongoose").Model<Emoji>;
diff --git a/dist/models/Emoji.js b/dist/models/Emoji.js
index f4bbad78..3bdc3c3d 100644
--- a/dist/models/Emoji.js
+++ b/dist/models/Emoji.js
@@ -1,3 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.EmojiModel = exports.EmojiSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.EmojiSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ animated: Boolean,
+ available: Boolean,
+ guild_id: mongoose_1.Types.Long,
+ managed: Boolean,
+ name: String,
+ require_colons: Boolean,
+ url: String,
+ roles: [mongoose_1.Types.Long],
+});
+exports.EmojiModel = mongoose_1.model("Emoji", exports.EmojiSchema, "emojis");
//# sourceMappingURL=Emoji.js.map
\ No newline at end of file
diff --git a/dist/models/Emoji.js.map b/dist/models/Emoji.js.map
index 3127e84e..2adcea36 100644
--- a/dist/models/Emoji.js.map
+++ b/dist/models/Emoji.js.map
@@ -1 +1 @@
-{"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/models/Emoji.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/models/Emoji.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAc7C,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,OAAO;IAClB,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,OAAO;IACvB,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;CACnB,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,gBAAK,CAAQ,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Event.d.ts b/dist/models/Event.d.ts
index 51bca8e3..c6049066 100644
--- a/dist/models/Event.d.ts
+++ b/dist/models/Event.d.ts
@@ -1,3 +1,4 @@
+/// <reference path="../util/MongoBigInt.d.ts" />
import { ConnectedAccount, User, UserSettings } from "./User";
import { DMChannel, Channel } from "./Channel";
import { Guild } from "./Guild";
@@ -10,7 +11,8 @@ import { Message, PartialEmoji } from "./Message";
import { VoiceState } from "./VoiceState";
import { ApplicationCommand } from "./Application";
import { Interaction } from "./Interaction";
-export interface Event {
+import { Schema, Document } from "mongoose";
+export interface Event extends Document {
guild_id?: bigint;
user_id?: bigint;
channel_id?: bigint;
@@ -18,6 +20,8 @@ export interface Event {
event: EVENT;
data?: any;
}
+export declare const EventSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const EventModel: import("mongoose").Model<Event>;
export interface InvalidatedEvent extends Event {
event: "INVALIDATED";
}
@@ -113,7 +117,10 @@ export interface GuildUpdateEvent extends Event {
}
export interface GuildDeleteEvent extends Event {
event: "GUILD_DELETE";
- data: Guild;
+ data: {
+ id: bigint;
+ unavailable?: boolean;
+ };
}
export interface GuildBanAddEvent extends Event {
event: "GUILD_BAN_ADD";
diff --git a/dist/models/Event.js b/dist/models/Event.js
index c5315321..0f4d0d8d 100644
--- a/dist/models/Event.js
+++ b/dist/models/Event.js
@@ -1,3 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.EventModel = exports.EventSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.EventSchema = new mongoose_1.Schema({
+ guild_id: mongoose_1.Types.Long,
+ user_id: mongoose_1.Types.Long,
+ channel_id: mongoose_1.Types.Long,
+ created_at: { type: Number, required: true },
+ event: { type: String, required: true },
+ data: Object,
+});
+exports.EventModel = mongoose_1.model("Event", exports.EventSchema, "events");
//# sourceMappingURL=Event.js.map
\ No newline at end of file
diff --git a/dist/models/Event.js.map b/dist/models/Event.js.map
index 63cd8fca..bc639871 100644
--- a/dist/models/Event.js.map
+++ b/dist/models/Event.js.map
@@ -1 +1 @@
-{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;AAYA,uCAA0D;AAW7C,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,IAAI,EAAE,MAAM;CACZ,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,gBAAK,CAAQ,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Guild.d.ts b/dist/models/Guild.d.ts
index 43bd6311..43fcf973 100644
--- a/dist/models/Guild.d.ts
+++ b/dist/models/Guild.d.ts
@@ -1,5 +1,7 @@
-import { Emoji } from "./Emoji";
-export interface Guild {
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface Guild extends Document {
+ id: bigint;
afk_channel_id?: bigint;
afk_timeout?: number;
application_id?: bigint;
@@ -7,11 +9,9 @@ export interface Guild {
default_message_notifications?: number;
description?: string;
discovery_splash?: string;
- emojis: Emoji[];
explicit_content_filter?: number;
features: string[];
icon?: string;
- id: bigint;
large?: boolean;
max_members?: number;
max_presences?: number;
@@ -38,3 +38,5 @@ export interface Guild {
widget_channel_id?: bigint;
widget_enabled?: boolean;
}
+export declare const GuildSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const GuildModel: import("mongoose").Model<Guild>;
diff --git a/dist/models/Guild.js b/dist/models/Guild.js
index 6c1c7bc5..63969ab7 100644
--- a/dist/models/Guild.js
+++ b/dist/models/Guild.js
@@ -1,3 +1,44 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.GuildModel = exports.GuildSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.GuildSchema = new mongoose_1.Schema({
+ afk_channel_id: mongoose_1.Types.Long,
+ afk_timeout: Number,
+ application_id: mongoose_1.Types.Long,
+ banner: String,
+ default_message_notifications: Number,
+ description: String,
+ discovery_splash: String,
+ explicit_content_filter: Number,
+ features: { type: [String], default: [] },
+ icon: String,
+ id: { type: mongoose_1.Types.Long, required: true },
+ large: Boolean,
+ max_members: { type: Number, default: 100000 },
+ max_presences: Number,
+ max_video_channel_users: { type: Number, default: 25 },
+ member_count: Number,
+ presence_count: Number,
+ mfa_level: Number,
+ name: { type: String, required: true },
+ owner_id: { type: mongoose_1.Types.Long, required: true },
+ preferred_locale: String,
+ premium_subscription_count: Number,
+ premium_tier: Number,
+ public_updates_channel_id: mongoose_1.Types.Long,
+ region: String,
+ rules_channel_id: mongoose_1.Types.Long,
+ splash: String,
+ system_channel_flags: Number,
+ system_channel_id: mongoose_1.Types.Long,
+ unavailable: Boolean,
+ vanity_url_code: String,
+ verification_level: Number,
+ voice_states: { type: [Object], default: [] },
+ welcome_screen: { type: [Object], default: [] },
+ widget_channel_id: mongoose_1.Types.Long,
+ widget_enabled: Boolean,
+});
+exports.GuildModel = mongoose_1.model("Guild", exports.GuildSchema, "guilds");
//# sourceMappingURL=Guild.js.map
\ No newline at end of file
diff --git a/dist/models/Guild.js.map b/dist/models/Guild.js.map
index 0cd8adb1..a22692f8 100644
--- a/dist/models/Guild.js.map
+++ b/dist/models/Guild.js.map
@@ -1 +1 @@
-{"version":3,"file":"Guild.js","sourceRoot":"","sources":["../../src/models/Guild.ts"],"names":[],"mappings":""}
\ No newline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B,EAAE,gBAAK,CAAC,IAAI;IAC7B,WAAW,EAAE,OAAO;IACpB,eAAe,EAAE,MAAM;IACvB,kBAAkB,EAAE,MAAM;IAC1B,YAAY,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAC7C,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/C,iBAAiB,EAAE,gBAAK,CAAC,IAAI;IAC7B,cAAc,EAAE,OAAO;CACvB,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,gBAAK,CAAQ,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Invite.d.ts b/dist/models/Invite.d.ts
index 654d922d..7b95939b 100644
--- a/dist/models/Invite.d.ts
+++ b/dist/models/Invite.d.ts
@@ -1,4 +1,6 @@
-export interface Invite {
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface Invite extends Document {
code: string;
temporary: boolean;
uses: number;
@@ -33,3 +35,5 @@ export interface Invite {
};
target_user_type: number;
}
+export declare const InviteSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const InviteModel: import("mongoose").Model<Invite>;
diff --git a/dist/models/Invite.js b/dist/models/Invite.js
index ff9594fe..8ae75fcc 100644
--- a/dist/models/Invite.js
+++ b/dist/models/Invite.js
@@ -1,3 +1,41 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.InviteModel = exports.InviteSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.InviteSchema = new mongoose_1.Schema({
+ code: String,
+ temporary: Boolean,
+ uses: Number,
+ max_uses: Number,
+ max_age: Number,
+ created_at: Number,
+ guild: {
+ id: mongoose_1.Types.Long,
+ name: String,
+ splash: String,
+ description: String,
+ icon: String,
+ features: Object,
+ verification_level: Number,
+ },
+ channel: {
+ id: mongoose_1.Types.Long,
+ name: String,
+ type: Number,
+ },
+ inviter: {
+ id: mongoose_1.Types.Long,
+ username: String,
+ avatar: String,
+ discriminator: Number,
+ },
+ target_user: {
+ id: mongoose_1.Types.Long,
+ username: String,
+ avatar: String,
+ discriminator: Number,
+ },
+ target_user_type: Number,
+});
+exports.InviteModel = mongoose_1.model("Invite", exports.InviteSchema, "invites");
//# sourceMappingURL=Invite.js.map
\ No newline at end of file
diff --git a/dist/models/Invite.js.map b/dist/models/Invite.js.map
index a5340046..fbfb8919 100644
--- a/dist/models/Invite.js.map
+++ b/dist/models/Invite.js.map
@@ -1 +1 @@
-{"version":3,"file":"Invite.js","sourceRoot":"","sources":["../../src/models/Invite.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Invite.js","sourceRoot":"","sources":["../../src/models/Invite.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAsC7C,QAAA,YAAY,GAAG,IAAI,iBAAM,CAAC;IACtC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,KAAK,EAAE;QACN,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,kBAAkB,EAAE,MAAM;KAC1B;IACD,OAAO,EAAE;QACR,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;KACZ;IAED,OAAO,EAAE;QACR,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,MAAM;QACd,aAAa,EAAE,MAAM;KACrB;IACD,WAAW,EAAE;QACZ,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,MAAM;QACd,aAAa,EAAE,MAAM;KACrB;IACD,gBAAgB,EAAE,MAAM;CACxB,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,gBAAK,CAAS,QAAQ,EAAE,oBAAY,EAAE,SAAS,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Member.d.ts b/dist/models/Member.d.ts
index 379bfced..e55fdb91 100644
--- a/dist/models/Member.d.ts
+++ b/dist/models/Member.d.ts
@@ -1,5 +1,7 @@
+/// <reference path="../util/MongoBigInt.d.ts" />
import { PublicUser } from "./User";
-export interface Member {
+import { Schema, Document } from "mongoose";
+export interface Member extends Document {
id: bigint;
nick?: string;
roles: bigint[];
@@ -11,9 +13,6 @@ export interface Member {
permissions: bigint;
settings: UserGuildSettings;
}
-export interface PublicMember extends Omit<Member, "settings" | "id"> {
- user: PublicUser;
-}
export interface UserGuildSettings {
channel_overrides: {
channel_id: bigint;
@@ -33,3 +32,8 @@ 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<Member>;
+export interface PublicMember extends Omit<Member, "settings" | "id"> {
+ user: PublicUser;
+}
diff --git a/dist/models/Member.js b/dist/models/Member.js
index 0a75bf46..b4aebf0a 100644
--- a/dist/models/Member.js
+++ b/dist/models/Member.js
@@ -1,3 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.MemberModel = exports.MemberSchema = void 0;
+const mongoose_1 = require("mongoose");
+const MuteConfig = {
+ end_time: Number,
+ selected_time_window: Number,
+};
+exports.MemberSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ nick: String,
+ roles: [mongoose_1.Types.Long],
+ joined_at: Number,
+ premium_since: Number,
+ deaf: Boolean,
+ mute: Boolean,
+ pending: Boolean,
+ permissions: mongoose_1.Types.Long,
+ settings: {
+ channel_overrides: [
+ {
+ channel_id: mongoose_1.Types.Long,
+ 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,
+ },
+});
+exports.MemberModel = mongoose_1.model("Member", exports.MemberSchema, "members");
//# sourceMappingURL=Member.js.map
\ No newline at end of file
diff --git a/dist/models/Member.js.map b/dist/models/Member.js.map
index 2a0d5623..4e9996c3 100644
--- a/dist/models/Member.js.map
+++ b/dist/models/Member.js.map
@@ -1 +1 @@
-{"version":3,"file":"Member.js","sourceRoot":"","sources":["../../src/models/Member.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Member.js","sourceRoot":"","sources":["../../src/models/Member.ts"],"names":[],"mappings":";;;AACA,uCAA0D;AAoC1D,MAAM,UAAU,GAAG;IAClB,QAAQ,EAAE,MAAM;IAChB,oBAAoB,EAAE,MAAM;CAC5B,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,iBAAM,CAAC;IACtC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM;IACjB,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gBAAK,CAAC,IAAI;IACvB,QAAQ,EAAE;QACT,iBAAiB,EAAE;YAClB;gBACC,UAAU,EAAE,gBAAK,CAAC,IAAI;gBACtB,qBAAqB,EAAE,MAAM;gBAC7B,WAAW,EAAE,UAAU;gBACvB,KAAK,EAAE,OAAO;aACd;SACD;QACD,qBAAqB,EAAE,MAAM;QAC7B,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,UAAU;QACvB,KAAK,EAAE,OAAO;QACd,iBAAiB,EAAE,OAAO;QAC1B,cAAc,EAAE,OAAO;QACvB,OAAO,EAAE,MAAM;KACf;CACD,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,gBAAK,CAAS,QAAQ,EAAE,oBAAY,EAAE,SAAS,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Message.d.ts b/dist/models/Message.d.ts
index cfbf560e..9ff70b2c 100644
--- a/dist/models/Message.d.ts
+++ b/dist/models/Message.d.ts
@@ -1,5 +1,7 @@
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
import { ChannelType } from "./Channel";
-export interface Message {
+export interface Message extends Document {
id: bigint;
author_id?: bigint;
webhook_id?: bigint;
@@ -26,7 +28,7 @@ export interface Message {
activity?: {
type: number;
party_id: string;
- }[];
+ };
flags?: bigint;
stickers?: [];
message_reference?: {
@@ -115,3 +117,5 @@ export interface AllowedMentions {
users?: bigint[];
replied_user?: boolean;
}
+export declare const MessageSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const MessageModel: import("mongoose").Model<Message>;
diff --git a/dist/models/Message.js b/dist/models/Message.js
index 773de5c2..40808f96 100644
--- a/dist/models/Message.js
+++ b/dist/models/Message.js
@@ -1,6 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.MessageType = void 0;
+exports.MessageModel = exports.MessageSchema = exports.MessageType = void 0;
+const mongoose_1 = require("mongoose");
+const Channel_1 = require("./Channel");
var MessageType;
(function (MessageType) {
MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
@@ -21,4 +23,99 @@ var MessageType;
MessageType[MessageType["REPLY"] = 19] = "REPLY";
MessageType[MessageType["APPLICATION_COMMAND"] = 20] = "APPLICATION_COMMAND";
})(MessageType = exports.MessageType || (exports.MessageType = {}));
+const Attachment = {
+ id: mongoose_1.Types.Long,
+ filename: String,
+ size: Number,
+ url: String,
+ proxy_url: String,
+ height: Number,
+ width: Number,
+};
+const EmbedImage = {
+ url: String,
+ proxy_url: String,
+ height: Number,
+ width: Number,
+};
+const Reaction = {
+ count: Number,
+ emoji: {
+ id: mongoose_1.Types.Long,
+ name: String,
+ animated: Boolean,
+ },
+};
+const Embed = {
+ title: String,
+ type: String,
+ description: String,
+ url: String,
+ timestamp: Number,
+ color: Number,
+ footer: {
+ text: String,
+ icon_url: String,
+ proxy_icon_url: String,
+ },
+ image: EmbedImage,
+ thumbnail: EmbedImage,
+ video: EmbedImage,
+ provider: {
+ name: String,
+ url: String,
+ },
+ author: {
+ name: String,
+ url: String,
+ icon_url: String,
+ proxy_icon_url: String,
+ },
+ fields: [
+ {
+ name: String,
+ value: String,
+ inline: Boolean,
+ },
+ ],
+};
+exports.MessageSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ author_id: mongoose_1.Types.Long,
+ webhook_id: mongoose_1.Types.Long,
+ application_id: mongoose_1.Types.Long,
+ content: String,
+ timestamp: Number,
+ edited_timestamp: Number,
+ tts: Boolean,
+ mention_everyone: Boolean,
+ mentions: [mongoose_1.Types.Long],
+ mention_roles: [mongoose_1.Types.Long],
+ mention_channels: [
+ {
+ id: mongoose_1.Types.Long,
+ guild_id: mongoose_1.Types.Long,
+ type: Channel_1.ChannelType,
+ name: String,
+ },
+ ],
+ attachments: [Attachment],
+ embeds: [Embed],
+ reactions: [Reaction],
+ nonce: mongoose_1.Schema.Types.Mixed,
+ pinned: Boolean,
+ type: MessageType,
+ activity: {
+ type: Number,
+ party_id: String,
+ },
+ flags: mongoose_1.Types.Long,
+ stickers: [],
+ message_reference: {
+ message_id: mongoose_1.Types.Long,
+ channel_id: mongoose_1.Types.Long,
+ guild_id: mongoose_1.Types.Long,
+ },
+});
+exports.MessageModel = mongoose_1.model("Message", exports.MessageSchema, "messages");
//# sourceMappingURL=Message.js.map
\ No newline at end of file
diff --git a/dist/models/Message.js.map b/dist/models/Message.js.map
index 94e6c2d2..6c165ffb 100644
--- a/dist/models/Message.js.map
+++ b/dist/models/Message.js.map
@@ -1 +1 @@
-{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";;;AAuCA,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB,mDAAW,CAAA;IACX,+DAAiB,CAAA;IACjB,qEAAoB,CAAA;IACpB,6CAAQ,CAAA;IACR,2EAAuB,CAAA;IACvB,2EAAuB,CAAA;IACvB,iFAA0B,CAAA;IAC1B,uEAAqB,CAAA;IACrB,mGAAmC,CAAA;IACnC,iHAA0C,CAAA;IAC1C,kHAA2C,CAAA;IAC3C,kHAA2C,CAAA;IAC3C,0EAAuB,CAAA;IACvB,8FAAiC,CAAA;IACjC,4FAAgC,CAAA;IAChC,gDAAU,CAAA;IACV,4EAAwB,CAAA;AACzB,CAAC,EAlBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkBtB"}
\ No newline at end of file
+{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAC1D,uCAAwC;AAuCxC,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB,mDAAW,CAAA;IACX,+DAAiB,CAAA;IACjB,qEAAoB,CAAA;IACpB,6CAAQ,CAAA;IACR,2EAAuB,CAAA;IACvB,2EAAuB,CAAA;IACvB,iFAA0B,CAAA;IAC1B,uEAAqB,CAAA;IACrB,mGAAmC,CAAA;IACnC,iHAA0C,CAAA;IAC1C,kHAA2C,CAAA;IAC3C,kHAA2C,CAAA;IAC3C,0EAAuB,CAAA;IACvB,8FAAiC,CAAA;IACjC,4FAAgC,CAAA;IAChC,gDAAU,CAAA;IACV,4EAAwB,CAAA;AACzB,CAAC,EAlBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkBtB;AAsED,MAAM,UAAU,GAAG;IAClB,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;IACX,S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AE,MAAM;IACjB,gBAAgB,EAAE,MAAM;IACxB,GAAG,EAAE,OAAO;IACZ,gBAAgB,EAAE,OAAO;IACzB,QAAQ,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;IACtB,aAAa,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;IAC3B,gBAAgB,EAAE;QACjB;YACC,EAAE,EAAE,gBAAK,CAAC,IAAI;YACd,QAAQ,EAAE,gBAAK,CAAC,IAAI;YACpB,IAAI,EAAE,qBAAW;YACjB,IAAI,EAAE,MAAM;SACZ;KACD;IACD,WAAW,EAAE,CAAC,UAAU,CAAC;IACzB,MAAM,EAAE,CAAC,KAAK,CAAC;IACf,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,KAAK,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;IACzB,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;KAChB;IACD,KAAK,EAAE,gBAAK,CAAC,IAAI;IACjB,QAAQ,EAAE,EAAE;IACZ,iBAAiB,EAAE;QAClB,UAAU,EAAE,gBAAK,CAAC,IAAI;QACtB,UAAU,EAAE,gBAAK,CAAC,IAAI;QACtB,QAAQ,EAAE,gBAAK,CAAC,IAAI;KACpB;CACD,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,gBAAK,CAAU,SAAS,EAAE,qBAAa,EAAE,UAAU,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Role.d.ts b/dist/models/Role.d.ts
index 11582893..a65b0e13 100644
--- a/dist/models/Role.d.ts
+++ b/dist/models/Role.d.ts
@@ -1,4 +1,6 @@
-export interface Role {
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface Role extends Document {
id: bigint;
color: number;
hoist: boolean;
@@ -11,3 +13,5 @@ export interface Role {
bot_id?: bigint;
};
}
+export declare const RoleSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const RoleModel: import("mongoose").Model<Role>;
diff --git a/dist/models/Role.js b/dist/models/Role.js
index 467f4294..9a0d0932 100644
--- a/dist/models/Role.js
+++ b/dist/models/Role.js
@@ -1,3 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.RoleModel = exports.RoleSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.RoleSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ color: Number,
+ hoist: Boolean,
+ managed: Boolean,
+ mentionable: Boolean,
+ name: String,
+ permissions: mongoose_1.Types.Long,
+ position: Number,
+ tags: {
+ bot_id: mongoose_1.Types.Long,
+ },
+});
+exports.RoleModel = mongoose_1.model("Role", exports.RoleSchema, "roles");
//# sourceMappingURL=Role.js.map
\ No newline at end of file
diff --git a/dist/models/Role.js.map b/dist/models/Role.js.map
index 74ec8cab..34adaaa5 100644
--- a/dist/models/Role.js.map
+++ b/dist/models/Role.js.map
@@ -1 +1 @@
-{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../src/models/Role.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../src/models/Role.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAgB7C,QAAA,UAAU,GAAG,IAAI,iBAAM,CAAC;IACpC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,gBAAK,CAAC,IAAI;IACvB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE;QACL,MAAM,EAAE,gBAAK,CAAC,IAAI;KAClB;CACD,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,gBAAK,CAAO,MAAM,EAAE,kBAAU,EAAE,OAAO,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/Status.d.ts b/dist/models/Status.d.ts
index 91494d02..424a16b2 100644
--- a/dist/models/Status.d.ts
+++ b/dist/models/Status.d.ts
@@ -4,3 +4,8 @@ export interface ClientStatus {
mobile?: string;
web?: string;
}
+export declare const ClientStatus: {
+ desktop: StringConstructor;
+ mobile: StringConstructor;
+ web: StringConstructor;
+};
diff --git a/dist/models/Status.js b/dist/models/Status.js
index f7c07536..992d9cae 100644
--- a/dist/models/Status.js
+++ b/dist/models/Status.js
@@ -1,3 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.ClientStatus = void 0;
+exports.ClientStatus = {
+ desktop: String,
+ mobile: String,
+ web: String,
+};
//# sourceMappingURL=Status.js.map
\ No newline at end of file
diff --git a/dist/models/Status.js.map b/dist/models/Status.js.map
index 36fc6d2b..1d5d65f7 100644
--- a/dist/models/Status.js.map
+++ b/dist/models/Status.js.map
@@ -1 +1 @@
-{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../src/models/Status.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../src/models/Status.ts"],"names":[],"mappings":";;;AAQa,QAAA,YAAY,GAAG;IAC3B,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,MAAM;CACX,CAAC"}
\ No newline at end of file
diff --git a/dist/models/User.d.ts b/dist/models/User.d.ts
index c23c0118..81ae1fab 100644
--- a/dist/models/User.d.ts
+++ b/dist/models/User.d.ts
@@ -1,6 +1,8 @@
+/// <reference path="../util/MongoBigInt.d.ts" />
import { Activity } from "./Activity";
import { ClientStatus, Status } from "./Status";
-export interface User {
+import { Schema, Document } from "mongoose";
+export interface User extends Document {
id: bigint;
username: string;
discriminator: string;
@@ -99,3 +101,5 @@ export interface UserSettings {
theme: "dark" | "white";
timezone_offset: number;
}
+export declare const UserSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const UserModel: import("mongoose").Model<User>;
diff --git a/dist/models/User.js b/dist/models/User.js
index 9da5871e..14f57c34 100644
--- a/dist/models/User.js
+++ b/dist/models/User.js
@@ -1,3 +1,102 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.UserModel = exports.UserSchema = void 0;
+const Activity_1 = require("./Activity");
+const Status_1 = require("./Status");
+const mongoose_1 = require("mongoose");
+exports.UserSchema = new mongoose_1.Schema({
+ id: mongoose_1.Types.Long,
+ username: String,
+ discriminator: String,
+ avatar: String,
+ phone: String,
+ desktop: Boolean,
+ mobile: Boolean,
+ premium: Boolean,
+ premium_type: Number,
+ bot: Boolean,
+ system: Boolean,
+ nsfw_allowed: Boolean,
+ mfa_enabled: Boolean,
+ created_at: Number,
+ verified: Boolean,
+ email: String,
+ flags: mongoose_1.Types.Long,
+ public_flags: mongoose_1.Types.Long,
+ hash: String,
+ guilds: [mongoose_1.Types.Long],
+ valid_tokens_since: Number,
+ user_settings: {
+ afk_timeout: Number,
+ allow_accessibility_detection: Boolean,
+ animate_emoji: Boolean,
+ animate_stickers: Number,
+ contact_sync_enabled: Boolean,
+ convert_emoticons: Boolean,
+ custom_status: {
+ emoji_id: mongoose_1.Types.Long,
+ emoji_name: String,
+ expires_at: Number,
+ text: String,
+ },
+ default_guilds_restricted: Boolean,
+ detect_platform_accounts: Boolean,
+ developer_mode: Boolean,
+ disable_games_tab: Boolean,
+ enable_tts_command: Boolean,
+ explicit_content_filter: Number,
+ friend_source_flags: { all: Boolean },
+ gif_auto_play: Boolean,
+ // every top guild is displayed as a "folder"
+ guild_folders: [
+ {
+ color: Number,
+ guild_ids: [mongoose_1.Types.Long],
+ id: Number,
+ name: String,
+ },
+ ],
+ guild_positions: [mongoose_1.Types.Long],
+ inline_attachment_media: Boolean,
+ inline_embed_media: Boolean,
+ locale: String,
+ message_display_compact: Boolean,
+ native_phone_integration_enabled: Boolean,
+ render_embeds: Boolean,
+ render_reactions: Boolean,
+ restricted_guilds: [mongoose_1.Types.Long],
+ show_current_game: Boolean,
+ status: String,
+ stream_notifications_enabled: Boolean,
+ theme: String,
+ timezone_offset: Number,
+ },
+ relationships: [
+ {
+ id: mongoose_1.Types.Long,
+ nickname: String,
+ type: Number,
+ user_id: mongoose_1.Types.Long,
+ },
+ ],
+ connected_accounts: [
+ {
+ access_token: String,
+ friend_sync: Boolean,
+ id: String,
+ name: String,
+ revoked: Boolean,
+ show_activity: Boolean,
+ type: String,
+ verifie: Boolean,
+ visibility: Number,
+ },
+ ],
+ presence: {
+ status: String,
+ activities: [Activity_1.Activity],
+ client_status: Status_1.ClientStatus,
+ },
+});
+exports.UserModel = mongoose_1.model("User", exports.UserSchema, "users");
//# sourceMappingURL=User.js.map
\ No newline at end of file
diff --git a/dist/models/User.js.map b/dist/models/User.js.map
index 55984657..9d83919d 100644
--- a/dist/models/User.js.map
+++ b/dist/models/User.js.map
@@ -1 +1 @@
-{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/models/User.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/models/User.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AACtC,qCAAgD;AAChD,uCAA0D;AAyG7C,QAAA,UAAU,GAAG,IAAI,iBAAM,CAAC;IACpC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,OAAO;IAChB,YAAY,EAAE,MAAM;IACpB,GAAG,EAAE,OAAO;IACZ,MAAM,EAAE,OAAO;IACf,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,gBAAK,CAAC,IAAI;IACjB,YAAY,EAAE,gBAAK,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KACvB;IACD,aAAa,EAAE;QACd;YACC,EAAE,EAAE,gBAAK,CAAC,IAAI;YACd,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,gBAAK,CAAC,IAAI;SACnB;KACD;IACD,kBAAkB,EAAE;QACnB;YACC,YAAY,EAAE,MAAM;YACpB,WAAW,EAAE,OAAO;YACpB,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,OAAO;YACtB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,MAAM;SAClB;KACD;IACD,QAAQ,EAAE;QACT,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,CAAC,mBAAQ,CAAC;QACtB,aAAa,EAAE,qBAAY;KAC3B;CACD,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,gBAAK,CAAO,MAAM,EAAE,kBAAU,EAAE,OAAO,CAAC,CAAC"}
\ No newline at end of file
diff --git a/dist/models/VoiceState.d.ts b/dist/models/VoiceState.d.ts
index 607d5509..50faa253 100644
--- a/dist/models/VoiceState.d.ts
+++ b/dist/models/VoiceState.d.ts
@@ -1,4 +1,6 @@
-export interface VoiceState {
+/// <reference path="../util/MongoBigInt.d.ts" />
+import { Schema, Document } from "mongoose";
+export interface VoiceState extends Document {
guild_id?: bigint;
channel_id: bigint;
user_id: bigint;
@@ -11,3 +13,5 @@ export interface VoiceState {
self_video: boolean;
suppress: boolean;
}
+export declare const VoiceSateSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
+export declare const VoiceStateModel: import("mongoose").Model<VoiceState>;
diff --git a/dist/models/VoiceState.js b/dist/models/VoiceState.js
index f9338233..ea8ae4de 100644
--- a/dist/models/VoiceState.js
+++ b/dist/models/VoiceState.js
@@ -1,3 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.VoiceStateModel = exports.VoiceSateSchema = void 0;
+const mongoose_1 = require("mongoose");
+exports.VoiceSateSchema = new mongoose_1.Schema({
+ guild_id: mongoose_1.Types.Long,
+ channel_id: mongoose_1.Types.Long,
+ user_id: mongoose_1.Types.Long,
+ session_id: String,
+ deaf: Boolean,
+ mute: Boolean,
+ self_deaf: Boolean,
+ self_mute: Boolean,
+ self_stream: Boolean,
+ self_video: Boolean,
+ suppress: Boolean,
+});
+exports.VoiceStateModel = mongoose_1.model("VoiceState", exports.VoiceSateSchema, "voicestates");
//# sourceMappingURL=VoiceState.js.map
\ No newline at end of file
diff --git a/dist/models/VoiceState.js.map b/dist/models/VoiceState.js.map
index 13bfc78b..e23c7693 100644
--- a/dist/models/VoiceState.js.map
+++ b/dist/models/VoiceState.js.map
@@ -1 +1 @@
-{"version":3,"file":"VoiceState.js","sourceRoot":"","sources":["../../src/models/VoiceState.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"VoiceState.js","sourceRoot":"","sources":["../../src/models/VoiceState.ts"],"names":[],"mappings":";;;AACA,uCAA0D;AAgB7C,QAAA,eAAe,GAAG,IAAI,iBAAM,CAAC;IACzC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,OAAO,EAAE,gBAAK,CAAC,IAAI;IACnB,UAAU,EAAE,MAAM;IAClB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,OAAO;CACjB,CAAC,CAAC;AAEU,QAAA,eAAe,GAAG,gBAAK,CAAa,YAAY,EAAE,uBAAe,EAAE,aAAa,CAAC,CAAC"}
\ No newline at end of file
|