mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
✨ changed number to date type
This commit is contained in:
parent
514afaca69
commit
dce4027928
4
dist/models/Activity.d.ts
vendored
4
dist/models/Activity.d.ts
vendored
@ -12,7 +12,7 @@ export interface Activity {
|
||||
name: string;
|
||||
type: ActivityType;
|
||||
url?: string;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
timestamps?: {
|
||||
start: number;
|
||||
end: number;
|
||||
@ -47,7 +47,7 @@ export declare const Activity: {
|
||||
name: StringConstructor;
|
||||
type: NumberConstructor;
|
||||
url: StringConstructor;
|
||||
created_at: NumberConstructor;
|
||||
created_at: DateConstructor;
|
||||
timestamps: {
|
||||
start: NumberConstructor;
|
||||
end: NumberConstructor;
|
||||
|
2
dist/models/Activity.js
vendored
2
dist/models/Activity.js
vendored
@ -6,7 +6,7 @@ exports.Activity = {
|
||||
name: String,
|
||||
type: Number,
|
||||
url: String,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
timestamps: [
|
||||
{
|
||||
start: Number,
|
||||
|
2
dist/models/Activity.js.map
vendored
2
dist/models/Activity.js.map
vendored
@ -1 +1 @@
|
||||
{"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"}
|
||||
{"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,IAAI;IAChB,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"}
|
2
dist/models/Channel.d.ts
vendored
2
dist/models/Channel.d.ts
vendored
@ -9,7 +9,7 @@ export declare const ChannelSchema: Schema<Document<any>, import("mongoose").Mod
|
||||
export declare const ChannelModel: import("mongoose").Model<ChannelDocument>;
|
||||
export interface Channel {
|
||||
id: bigint;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
name: string;
|
||||
type: number;
|
||||
}
|
||||
|
2
dist/models/Event.d.ts
vendored
2
dist/models/Event.d.ts
vendored
@ -171,7 +171,7 @@ export interface GuildMemberUpdateEvent extends Event {
|
||||
roles: bigint[];
|
||||
user: User;
|
||||
nick?: string;
|
||||
joined_at: number;
|
||||
joined_at: Date;
|
||||
premium_since?: number;
|
||||
pending?: boolean;
|
||||
};
|
||||
|
2
dist/models/Invite.d.ts
vendored
2
dist/models/Invite.d.ts
vendored
@ -6,7 +6,7 @@ export interface Invite extends Document {
|
||||
uses: number;
|
||||
max_uses: number;
|
||||
max_age: number;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
guild_id: bigint;
|
||||
channel_id: bigint;
|
||||
inviter_id: bigint;
|
||||
|
2
dist/models/Invite.js
vendored
2
dist/models/Invite.js
vendored
@ -12,7 +12,7 @@ exports.InviteSchema = new mongoose_1.Schema({
|
||||
uses: Number,
|
||||
max_uses: Number,
|
||||
max_age: Number,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
guild_id: mongoose_1.Types.Long,
|
||||
channel_id: mongoose_1.Types.Long,
|
||||
inviter_id: mongoose_1.Types.Long,
|
||||
|
2
dist/models/Invite.js.map
vendored
2
dist/models/Invite.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"Invite.js","sourceRoot":"","sources":["../../src/models/Invite.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAmD;AACnD,gEAAkC;AAmBrB,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,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,gBAAK,CAAC,IAAI;IAEtB,iCAAiC;IACjC,cAAc,EAAE,gBAAK,CAAC,IAAI;IAC1B,gBAAgB,EAAE,MAAM;CAExB,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,WAAW,GAAG,kBAAE,CAAC,KAAK,CAAS,QAAQ,EAAE,oBAAY,EAAE,SAAS,CAAC,CAAC"}
|
||||
{"version":3,"file":"Invite.js","sourceRoot":"","sources":["../../src/models/Invite.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAmD;AACnD,gEAAkC;AAmBrB,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,IAAI;IAChB,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,UAAU,EAAE,gBAAK,CAAC,IAAI;IACtB,UAAU,EAAE,gBAAK,CAAC,IAAI;IAEtB,iCAAiC;IACjC,cAAc,EAAE,gBAAK,CAAC,IAAI;IAC1B,gBAAgB,EAAE,MAAM;CAExB,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,WAAW,GAAG,kBAAE,CAAC,KAAK,CAAS,QAAQ,EAAE,oBAAY,EAAE,SAAS,CAAC,CAAC"}
|
2
dist/models/Member.d.ts
vendored
2
dist/models/Member.d.ts
vendored
@ -6,7 +6,7 @@ export interface Member {
|
||||
guild_id: bigint;
|
||||
nick?: string;
|
||||
roles: bigint[];
|
||||
joined_at: number;
|
||||
joined_at: Date;
|
||||
premium_since?: number;
|
||||
deaf: boolean;
|
||||
mute: boolean;
|
||||
|
2
dist/models/Member.js
vendored
2
dist/models/Member.js
vendored
@ -16,7 +16,7 @@ exports.MemberSchema = new mongoose_1.Schema({
|
||||
guild_id: mongoose_1.Types.Long,
|
||||
nick: String,
|
||||
roles: [mongoose_1.Types.Long],
|
||||
joined_at: Number,
|
||||
joined_at: Date,
|
||||
premium_since: Number,
|
||||
deaf: Boolean,
|
||||
mute: Boolean,
|
||||
|
2
dist/models/Member.js.map
vendored
2
dist/models/Member.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"Member.js","sourceRoot":"","sources":["../../src/models/Member.ts"],"names":[],"mappings":";;;;;;AAAA,iCAAqD;AACrD,uCAAmD;AACnD,gEAAkC;AAyClC,MAAM,UAAU,GAAG;IAClB,QAAQ,EAAE,MAAM;IAChB,oBAAoB,EAAE,MAAM;CAC5B,CAAC;AAEW,QAAA,YAAY,GAAG,IAAI,iBAAM,CAAC;IACtC,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,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,QAAQ,EAAE;QACT,i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AE,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;AAEH,oBAAY,CAAC,OAAO,CAAC,MAAM,EAAE;IAC5B,GAAG,EAAE,gBAAS;IACd,UAAU,EAAE,IAAI;IAChB,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,WAAW,GAAG,kBAAE,CAAC,KAAK,CAAiB,QAAQ,EAAE,oBAAY,EAAE,SAAS,CAAC,CAAC"}
|
70
dist/models/Message.d.ts
vendored
70
dist/models/Message.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
/// <reference path="../util/MongoBigInt.d.ts" />
|
||||
import { Schema, Document } from "mongoose";
|
||||
export interface Message extends Document {
|
||||
import { Schema, Types, Document } from "mongoose";
|
||||
export interface Message {
|
||||
id: bigint;
|
||||
channel_id: bigint;
|
||||
guild_id?: bigint;
|
||||
@ -33,6 +33,9 @@ export interface Message extends Document {
|
||||
guild_id?: bigint;
|
||||
};
|
||||
}
|
||||
export interface MessageDocument extends Document, Message {
|
||||
id: bigint;
|
||||
}
|
||||
export declare enum MessageType {
|
||||
DEFAULT = 0,
|
||||
RECIPIENT_ADD = 1,
|
||||
@ -113,5 +116,66 @@ export interface AllowedMentions {
|
||||
users?: bigint[];
|
||||
replied_user?: boolean;
|
||||
}
|
||||
export declare const Attachment: {
|
||||
id: typeof Types.Long;
|
||||
filename: StringConstructor;
|
||||
size: NumberConstructor;
|
||||
url: StringConstructor;
|
||||
proxy_url: StringConstructor;
|
||||
height: NumberConstructor;
|
||||
width: NumberConstructor;
|
||||
};
|
||||
export declare const EmbedImage: {
|
||||
url: StringConstructor;
|
||||
proxy_url: StringConstructor;
|
||||
height: NumberConstructor;
|
||||
width: NumberConstructor;
|
||||
};
|
||||
export declare const Embed: {
|
||||
title: StringConstructor;
|
||||
type: StringConstructor;
|
||||
description: StringConstructor;
|
||||
url: StringConstructor;
|
||||
timestamp: NumberConstructor;
|
||||
color: NumberConstructor;
|
||||
footer: {
|
||||
text: StringConstructor;
|
||||
icon_url: StringConstructor;
|
||||
proxy_icon_url: StringConstructor;
|
||||
};
|
||||
image: {
|
||||
url: StringConstructor;
|
||||
proxy_url: StringConstructor;
|
||||
height: NumberConstructor;
|
||||
width: NumberConstructor;
|
||||
};
|
||||
thumbnail: {
|
||||
url: StringConstructor;
|
||||
proxy_url: StringConstructor;
|
||||
height: NumberConstructor;
|
||||
width: NumberConstructor;
|
||||
};
|
||||
video: {
|
||||
url: StringConstructor;
|
||||
proxy_url: StringConstructor;
|
||||
height: NumberConstructor;
|
||||
width: NumberConstructor;
|
||||
};
|
||||
provider: {
|
||||
name: StringConstructor;
|
||||
url: StringConstructor;
|
||||
};
|
||||
author: {
|
||||
name: StringConstructor;
|
||||
url: StringConstructor;
|
||||
icon_url: StringConstructor;
|
||||
proxy_icon_url: StringConstructor;
|
||||
};
|
||||
fields: {
|
||||
name: StringConstructor;
|
||||
value: StringConstructor;
|
||||
inline: BooleanConstructor;
|
||||
}[];
|
||||
};
|
||||
export declare const MessageSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
|
||||
export declare const MessageModel: import("mongoose").Model<Message>;
|
||||
export declare const MessageModel: import("mongoose").Model<MessageDocument>;
|
||||
|
18
dist/models/Message.js
vendored
18
dist/models/Message.js
vendored
@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MessageModel = exports.MessageSchema = exports.MessageType = void 0;
|
||||
exports.MessageModel = exports.MessageSchema = exports.Embed = exports.EmbedImage = exports.Attachment = exports.MessageType = void 0;
|
||||
const mongoose_1 = require("mongoose");
|
||||
const Database_1 = __importDefault(require("../util/Database"));
|
||||
const User_1 = require("./User");
|
||||
@ -29,7 +29,7 @@ var MessageType;
|
||||
MessageType[MessageType["REPLY"] = 19] = "REPLY";
|
||||
MessageType[MessageType["APPLICATION_COMMAND"] = 20] = "APPLICATION_COMMAND";
|
||||
})(MessageType = exports.MessageType || (exports.MessageType = {}));
|
||||
const Attachment = {
|
||||
exports.Attachment = {
|
||||
id: mongoose_1.Types.Long,
|
||||
filename: String,
|
||||
size: Number,
|
||||
@ -38,7 +38,7 @@ const Attachment = {
|
||||
height: Number,
|
||||
width: Number,
|
||||
};
|
||||
const EmbedImage = {
|
||||
exports.EmbedImage = {
|
||||
url: String,
|
||||
proxy_url: String,
|
||||
height: Number,
|
||||
@ -52,7 +52,7 @@ const Reaction = {
|
||||
animated: Boolean,
|
||||
},
|
||||
};
|
||||
const Embed = {
|
||||
exports.Embed = {
|
||||
title: String,
|
||||
type: String,
|
||||
description: String,
|
||||
@ -64,9 +64,9 @@ const Embed = {
|
||||
icon_url: String,
|
||||
proxy_icon_url: String,
|
||||
},
|
||||
image: EmbedImage,
|
||||
thumbnail: EmbedImage,
|
||||
video: EmbedImage,
|
||||
image: exports.EmbedImage,
|
||||
thumbnail: exports.EmbedImage,
|
||||
video: exports.EmbedImage,
|
||||
provider: {
|
||||
name: String,
|
||||
url: String,
|
||||
@ -100,8 +100,8 @@ exports.MessageSchema = new mongoose_1.Schema({
|
||||
mention_user_ids: [mongoose_1.Types.Long],
|
||||
mention_role_ids: [mongoose_1.Types.Long],
|
||||
mention_channel_ids: [mongoose_1.Types.Long],
|
||||
attachments: [Attachment],
|
||||
embeds: [Embed],
|
||||
attachments: [exports.Attachment],
|
||||
embeds: [exports.Embed],
|
||||
reactions: [Reaction],
|
||||
nonce: mongoose_1.Schema.Types.Mixed,
|
||||
pinned: Boolean,
|
||||
|
2
dist/models/Message.js.map
vendored
2
dist/models/Message.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAmD;AACnD,gEAAkC;AAClC,iCAAmC;AACnC,qCAAuC;AACvC,iCAAmC;AAoCnC,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,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,UAAU,GAAG;IAClB,GAAG,EAAE,MAAM;IACX,SAAS,EAAE,MAAM;IACjB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,QAAQ,GAAG;IAChB,KAAK,EAAE,MAAM;IACb,KAAK,EAAE;QACN,EAAE,EAAE,gBAAK,CAAC,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,OAAO;KACjB;CACD,CAAC;AAEF,MAAM,KAAK,GAAG;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CAAC,kBAAkB,EAAE;IACzC,GAAG,EAAE,gBAAS;IACd,UAAU,EAAE,kBAAkB;IAC9B,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC;AAEH,kCAAkC;AAClC,yCAAyC;AACzC,qBAAqB;AACrB,mCAAmC;AACnC,uBAAuB;AACvB,kBAAkB;AAClB,MAAM;AAEN,aAAa;AACA,QAAA,YAAY,GAAG,kBAAE,CAAC,KAAK,CAAkB,SAAS,EAAE,qBAAa,EAAE,UAAU,CAAC,CAAC"}
|
4
dist/models/User.d.ts
vendored
4
dist/models/User.d.ts
vendored
@ -18,14 +18,14 @@ export interface User {
|
||||
level: string;
|
||||
nsfw_allowed: boolean;
|
||||
mfa_enabled: boolean;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
verified: boolean;
|
||||
email?: string;
|
||||
flags: bigint;
|
||||
public_flags: bigint;
|
||||
hash: string;
|
||||
guilds: bigint[];
|
||||
valid_tokens_since: number;
|
||||
valid_tokens_since: Date;
|
||||
user_settings: UserSettings;
|
||||
relationships: Relationship[];
|
||||
connected_accounts: ConnectedAccount[];
|
||||
|
4
dist/models/User.js
vendored
4
dist/models/User.js
vendored
@ -23,14 +23,14 @@ exports.UserSchema = new mongoose_1.Schema({
|
||||
system: Boolean,
|
||||
nsfw_allowed: Boolean,
|
||||
mfa_enabled: Boolean,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
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,
|
||||
valid_tokens_since: Date,
|
||||
user_settings: {
|
||||
afk_timeout: Number,
|
||||
allow_accessibility_detection: Boolean,
|
||||
|
2
dist/models/User.js.map
vendored
2
dist/models/User.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/models/User.ts"],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AAC;QACtB,aAAa,EAAE,qBAAY;KAC3B;CACD,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,SAAS,GAAG,kBAAE,CAAC,KAAK,CAAe,MAAM,EAAE,kBAAU,EAAE,OAAO,CAAC,CAAC"}
|
2
dist/util/Permissions.js
vendored
2
dist/util/Permissions.js
vendored
@ -92,7 +92,7 @@ async function getPermission(user_id, guild_id, channel_id, cache) {
|
||||
if (!guild)
|
||||
throw new Error("Guild not found");
|
||||
if (guild.owner_id === user_id)
|
||||
return new Permissions("ADMINISTRATOR");
|
||||
return new Permissions(Permissions.FLAGS.ADMINISTRATOR);
|
||||
member = await Member_1.MemberModel.findOne({ guild_id, id: user_id }, "roles").exec();
|
||||
if (!member)
|
||||
throw new Error("Member not found");
|
||||
|
2
dist/util/Permissions.js.map
vendored
2
dist/util/Permissions.js.map
vendored
@ -1 +1 @@
|
||||
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/util/Permissions.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AAC9E,8DAA8D;AAC9D,6CAA+D;AAC/D,+CAAkE;AAElE,yCAAiD;AACjD,yCAAsC;AACtC,2CAA4D;AAqC5D,MAAM,wBAAwB,GAAG,EAAE,IAAI,GAAG,CAAC,CAAC,qEAAqE;AAEjH,MAAa,WAAY,SAAQ,mBAAQ;IA0CxC,GAAG,CAAC,UAAgC,EAAE,UAAU,GAAG,IAAI;QACtD,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,UAAgC,EAAE,UAAU,GAAG,IAAI;QACtD,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC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,UAAU,CAAC,CAAC;AACpC,CAAC;AAlCD,sCAkCC"}
|
@ -14,7 +14,7 @@ export interface Activity {
|
||||
name: string;
|
||||
type: ActivityType;
|
||||
url?: string;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
timestamps?: {
|
||||
start: number;
|
||||
end: number;
|
||||
@ -50,7 +50,7 @@ export const Activity = {
|
||||
name: String,
|
||||
type: Number,
|
||||
url: String,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
timestamps: [
|
||||
{
|
||||
start: Number,
|
||||
|
@ -37,7 +37,7 @@ export const ChannelModel = db.model<ChannelDocument>("Channel", ChannelSchema,
|
||||
|
||||
export interface Channel {
|
||||
id: bigint;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
name: string;
|
||||
type: number;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ export interface GuildMemberUpdateEvent extends Event {
|
||||
roles: bigint[];
|
||||
user: User;
|
||||
nick?: string;
|
||||
joined_at: number;
|
||||
joined_at: Date;
|
||||
premium_since?: number;
|
||||
pending?: boolean;
|
||||
};
|
||||
|
@ -7,7 +7,7 @@ export interface Invite extends Document {
|
||||
uses: number;
|
||||
max_uses: number;
|
||||
max_age: number;
|
||||
created_at: number;
|
||||
created_at: Date;
|
||||
guild_id: bigint;
|
||||
channel_id: bigint;
|
||||
inviter_id: bigint;
|
||||
@ -24,7 +24,7 @@ export const InviteSchema = new Schema({
|
||||
uses: Number,
|
||||
max_uses: Number,
|
||||
max_age: Number,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
guild_id: Types.Long,
|
||||
channel_id: Types.Long,
|
||||
inviter_id: Types.Long,
|
||||
|
@ -7,7 +7,7 @@ export interface Member {
|
||||
guild_id: bigint;
|
||||
nick?: string;
|
||||
roles: bigint[];
|
||||
joined_at: number;
|
||||
joined_at: Date;
|
||||
premium_since?: number;
|
||||
deaf: boolean;
|
||||
mute: boolean;
|
||||
@ -51,7 +51,7 @@ export const MemberSchema = new Schema({
|
||||
guild_id: Types.Long,
|
||||
nick: String,
|
||||
roles: [Types.Long],
|
||||
joined_at: Number,
|
||||
joined_at: Date,
|
||||
premium_since: Number,
|
||||
deaf: Boolean,
|
||||
mute: Boolean,
|
||||
|
@ -4,7 +4,7 @@ import { UserModel } from "./User";
|
||||
import { MemberModel } from "./Member";
|
||||
import { RoleModel } from "./Role";
|
||||
|
||||
export interface Message extends Document {
|
||||
export interface Message {
|
||||
id: bigint;
|
||||
channel_id: bigint;
|
||||
guild_id?: bigint;
|
||||
@ -38,6 +38,10 @@ export interface Message extends Document {
|
||||
};
|
||||
}
|
||||
|
||||
export interface MessageDocument extends Document, Message {
|
||||
id: bigint;
|
||||
}
|
||||
|
||||
export enum MessageType {
|
||||
DEFAULT = 0,
|
||||
RECIPIENT_ADD = 1,
|
||||
@ -126,7 +130,7 @@ export interface AllowedMentions {
|
||||
replied_user?: boolean;
|
||||
}
|
||||
|
||||
const Attachment = {
|
||||
export const Attachment = {
|
||||
id: Types.Long, // attachment id
|
||||
filename: String, // name of file attached
|
||||
size: Number, // size of file in bytes
|
||||
@ -136,7 +140,7 @@ const Attachment = {
|
||||
width: Number, // width of file (if image)
|
||||
};
|
||||
|
||||
const EmbedImage = {
|
||||
export const EmbedImage = {
|
||||
url: String,
|
||||
proxy_url: String,
|
||||
height: Number,
|
||||
@ -264,4 +268,4 @@ MessageSchema.virtual("mention_channels", {
|
||||
// });
|
||||
|
||||
// @ts-ignore
|
||||
export const MessageModel = db.model<Message>("Message", MessageSchema, "messages");
|
||||
export const MessageModel = db.model<MessageDocument>("Message", MessageSchema, "messages");
|
||||
|
@ -19,14 +19,14 @@ export interface User {
|
||||
level: string; // organization permission level (owner, moderator, user)
|
||||
nsfw_allowed: boolean; // if the user is older than 18 (resp. Config)
|
||||
mfa_enabled: boolean; // if multi factor authentication is enabled
|
||||
created_at: number; // registration date
|
||||
created_at: Date; // registration date
|
||||
verified: boolean; // if the user is offically verified
|
||||
email?: string; // email of the user
|
||||
flags: bigint; // UserFlags
|
||||
public_flags: bigint;
|
||||
hash: string; // hash of the password, salt is saved in password (bcrypt)
|
||||
guilds: bigint[]; // array of guild ids the user is part of
|
||||
valid_tokens_since: number; // all tokens with a previous issue date are invalid
|
||||
valid_tokens_since: Date; // all tokens with a previous issue date are invalid
|
||||
user_settings: UserSettings;
|
||||
relationships: Relationship[];
|
||||
connected_accounts: ConnectedAccount[];
|
||||
@ -128,14 +128,14 @@ export const UserSchema = new Schema({
|
||||
system: Boolean,
|
||||
nsfw_allowed: Boolean,
|
||||
mfa_enabled: Boolean,
|
||||
created_at: Number,
|
||||
created_at: Date,
|
||||
verified: Boolean,
|
||||
email: String,
|
||||
flags: Types.Long, // TODO: automatically convert Types.Long to BitField of UserFlags
|
||||
public_flags: Types.Long,
|
||||
hash: String, // hash of the password, salt is saved in password (bcrypt)
|
||||
guilds: [Types.Long], // array of guild ids the user is part of
|
||||
valid_tokens_since: Number, // all tokens with a previous issue date are invalid
|
||||
valid_tokens_since: Date, // all tokens with a previous issue date are invalid
|
||||
user_settings: {
|
||||
afk_timeout: Number,
|
||||
allow_accessibility_detection: Boolean,
|
||||
|
Loading…
Reference in New Issue
Block a user