diff options
-rw-r--r-- | dist/models/Channel.d.ts | 4 | ||||
-rw-r--r-- | dist/models/Channel.js.map | 2 | ||||
-rw-r--r-- | dist/models/Event.d.ts | 6 | ||||
-rw-r--r-- | dist/models/Event.js.map | 2 | ||||
-rw-r--r-- | dist/models/Guild.d.ts | 7 | ||||
-rw-r--r-- | dist/models/Guild.js.map | 2 | ||||
-rw-r--r-- | dist/models/Role.d.ts | 7 | ||||
-rw-r--r-- | dist/models/Role.js.map | 2 | ||||
-rw-r--r-- | src/models/Channel.ts | 4 | ||||
-rw-r--r-- | src/models/Event.ts | 6 | ||||
-rw-r--r-- | src/models/Guild.ts | 8 | ||||
-rw-r--r-- | src/models/Role.ts | 8 |
12 files changed, 40 insertions, 18 deletions
diff --git a/dist/models/Channel.d.ts b/dist/models/Channel.d.ts index 289f77c6..2528070a 100644 --- a/dist/models/Channel.d.ts +++ b/dist/models/Channel.d.ts @@ -1,6 +1,8 @@ /// <reference path="../util/MongoBigInt.d.ts" /> import { Schema, Document } from "mongoose"; -export interface ChannelDocument extends Channel, DMChannel, TextChannel, VoiceChannel, Document { +export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel { +} +export interface ChannelDocument extends Document, AnyChannel { id: bigint; } export declare const ChannelSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; diff --git a/dist/models/Channel.js.map b/dist/models/Channel.js.map index cba13d65..75d91110 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":";;;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;AA4BzF,IAAY,8BAGX;AAHD,WAAY,8BAA8B;IACzC,mFAAQ,CAAA;IACR,uFAAU,CAAA;AACX,CAAC,EAHW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAGzC;AAeD,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;AAQ7C,QAAA,aAAa,GAAG,IAAI,iBAAM,CAAC;IACvC,EAAE,EAAE,gBAAK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file diff --git a/dist/models/Event.d.ts b/dist/models/Event.d.ts index 2e035b58..a3db8251 100644 --- a/dist/models/Event.d.ts +++ b/dist/models/Event.d.ts @@ -12,7 +12,7 @@ import { VoiceState } from "./VoiceState"; import { ApplicationCommand } from "./Application"; import { Interaction } from "./Interaction"; import { Schema, Document } from "mongoose"; -export interface Event extends Document { +export interface Event { guild_id?: bigint; user_id?: bigint; channel_id?: bigint; @@ -20,8 +20,10 @@ export interface Event extends Document { event: EVENT; data?: any; } +export interface EventDocument extends Event, Document { +} export declare const EventSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const EventModel: import("mongoose").Model<Event>; +export declare const EventModel: import("mongoose").Model<EventDocument>; export interface InvalidatedEvent extends Event { event: "INVALIDATED"; } diff --git a/dist/models/Event.js.map b/dist/models/Event.js.map index bc639871..3ba71bbf 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":";;;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 +{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../src/models/Event.ts"],"names":[],"mappings":";;;AAYA,uCAA0D;AAa7C,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,CAAgB,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 43fcf973..3c429ab6 100644 --- a/dist/models/Guild.d.ts +++ b/dist/models/Guild.d.ts @@ -1,6 +1,9 @@ /// <reference path="../util/MongoBigInt.d.ts" /> import { Schema, Document } from "mongoose"; -export interface Guild extends Document { +export interface GuildDocument extends Document, Guild { + id: bigint; +} +export interface Guild { id: bigint; afk_channel_id?: bigint; afk_timeout?: number; @@ -39,4 +42,4 @@ export interface Guild extends Document { widget_enabled?: boolean; } export declare const GuildSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const GuildModel: import("mongoose").Model<Guild>; +export declare const GuildModel: import("mongoose").Model<GuildDocument>; diff --git a/dist/models/Guild.js.map b/dist/models/Guild.js.map index a22692f8..e2466cd5 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":";;;AAAA,uCAA0D;AA6C7C,QAAA,WAAW,GAAG,IAAI,iBAAM,CAAC;IACrC,cAAc,EAAE,gBAAK,CAAC,IAAI;IAC1B,WAAW,EAAE,MAAM;IACnB,cAAc,EAAE,gBAAK,CAAC,IAAI;IAC1B,MAAM,EAAE,MAAM;IACd,6BAA6B,EAAE,MAAM;IACrC,W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yB,EAAE,gBAAK,CAAC,IAAI;IACrC,MAAM,EAAE,MAAM;IACd,gBAAgB,EAAE,gBAAK,CAAC,IAAI;IAC5B,MAAM,EAAE,MAAM;IACd,oBAAoB,EAAE,MAAM;IAC5B,iBAAiB,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,CAAgB,OAAO,EAAE,mBAAW,EAAE,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/models/Role.d.ts b/dist/models/Role.d.ts index bdb10557..6a3f1669 100644 --- a/dist/models/Role.d.ts +++ b/dist/models/Role.d.ts @@ -1,6 +1,6 @@ /// <reference path="../util/MongoBigInt.d.ts" /> import { Schema, Document } from "mongoose"; -export interface Role extends Document { +export interface Role { id: bigint; guild_id: bigint; color: number; @@ -14,5 +14,8 @@ export interface Role extends Document { bot_id?: bigint; }; } +export interface RoleDocument extends Document, Role { + id: bigint; +} export declare const RoleSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const RoleModel: import("mongoose").Model<Role>; +export declare const RoleModel: import("mongoose").Model<RoleDocument>; diff --git a/dist/models/Role.js.map b/dist/models/Role.js.map index 08a55b2c..1481789e 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":";;;AAAA,uCAA0D;AAiB7C,QAAA,UAAU,GAAG,IAAI,iBAAM,CAAC;IACpC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,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 +{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../src/models/Role.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAqB7C,QAAA,UAAU,GAAG,IAAI,iBAAM,CAAC;IACpC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,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,CAAe,MAAM,EAAE,kBAAU,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/src/models/Channel.ts b/src/models/Channel.ts index 3c63f80f..57e75f26 100644 --- a/src/models/Channel.ts +++ b/src/models/Channel.ts @@ -1,6 +1,8 @@ import { Schema, model, Types, Document } from "mongoose"; -export interface ChannelDocument extends Channel, DMChannel, TextChannel, VoiceChannel, Document { +export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel {} + +export interface ChannelDocument extends Document, AnyChannel { id: bigint; } diff --git a/src/models/Event.ts b/src/models/Event.ts index 4e2736c0..515c6119 100644 --- a/src/models/Event.ts +++ b/src/models/Event.ts @@ -12,7 +12,7 @@ import { ApplicationCommand } from "./Application"; import { Interaction } from "./Interaction"; import { Schema, model, Types, Document } from "mongoose"; -export interface Event extends Document { +export interface Event { guild_id?: bigint; user_id?: bigint; channel_id?: bigint; @@ -21,6 +21,8 @@ export interface Event extends Document { data?: any; } +export interface EventDocument extends Event, Document {} + export const EventSchema = new Schema({ guild_id: Types.Long, user_id: Types.Long, @@ -30,7 +32,7 @@ export const EventSchema = new Schema({ data: Object, }); -export const EventModel = model<Event>("Event", EventSchema, "events"); +export const EventModel = model<EventDocument>("Event", EventSchema, "events"); // ! Custom Events that shouldn't get sent to the client but processed by the server diff --git a/src/models/Guild.ts b/src/models/Guild.ts index c9a55301..11629fb5 100644 --- a/src/models/Guild.ts +++ b/src/models/Guild.ts @@ -1,6 +1,10 @@ import { Schema, model, Types, Document } from "mongoose"; -export interface Guild extends Document { +export interface GuildDocument extends Document, Guild { + id: bigint; +} + +export interface Guild { id: bigint; afk_channel_id?: bigint; afk_timeout?: number; @@ -82,4 +86,4 @@ export const GuildSchema = new Schema({ widget_enabled: Boolean, }); -export const GuildModel = model<Guild>("Guild", GuildSchema, "guilds"); +export const GuildModel = model<GuildDocument>("Guild", GuildSchema, "guilds"); diff --git a/src/models/Role.ts b/src/models/Role.ts index b6cba2f8..a8d03373 100644 --- a/src/models/Role.ts +++ b/src/models/Role.ts @@ -1,6 +1,6 @@ import { Schema, model, Types, Document } from "mongoose"; -export interface Role extends Document { +export interface Role { id: bigint; guild_id: bigint; color: number; @@ -15,6 +15,10 @@ export interface Role extends Document { }; } +export interface RoleDocument extends Document, Role { + id: bigint; +} + export const RoleSchema = new Schema({ id: Types.Long, guild_id: Types.Long, @@ -30,4 +34,4 @@ export const RoleSchema = new Schema({ }, }); -export const RoleModel = model<Role>("Role", RoleSchema, "roles"); +export const RoleModel = model<RoleDocument>("Role", RoleSchema, "roles"); |