diff options
Diffstat (limited to 'src/models/Role.ts')
-rw-r--r-- | src/models/Role.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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"); |