1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 21:23:24 +01:00
server/dist/models/Role.d.ts

22 lines
609 B
TypeScript
Raw Normal View History

2021-02-13 14:15:59 +01:00
/// <reference path="../util/MongoBigInt.d.ts" />
import { Schema, Document } from "mongoose";
2021-02-14 20:41:40 +01:00
export interface Role {
id: bigint;
guild_id: bigint;
2021-02-05 22:01:01 +01:00
color: number;
hoist: boolean;
managed: boolean;
mentionable: boolean;
name: string;
permissions: bigint;
position: number;
tags?: {
bot_id?: bigint;
};
2021-02-05 22:01:01 +01:00
}
2021-02-14 20:41:40 +01:00
export interface RoleDocument extends Document, Role {
id: bigint;
}
2021-02-13 14:15:59 +01:00
export declare const RoleSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
2021-02-14 20:41:40 +01:00
export declare const RoleModel: import("mongoose").Model<RoleDocument>;