summary refs log tree commit diff
path: root/src/models/Role.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 23:57:02 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-13 23:57:02 +0100
commit52964aed06c879ac31987e4c487de9c66292e0c2 (patch)
tree9dbda022933d8b93e66f2ce5c51e25ba1b0b208e /src/models/Role.ts
parent:bug: export MongooseCache (diff)
downloadserver-52964aed06c879ac31987e4c487de9c66292e0c2.tar.xz
:art: Channel + Member + Message + Role in separate collection
Diffstat (limited to 'src/models/Role.ts')
-rw-r--r--src/models/Role.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/Role.ts b/src/models/Role.ts

index d35bd57c..b6cba2f8 100644 --- a/src/models/Role.ts +++ b/src/models/Role.ts
@@ -2,6 +2,7 @@ import { Schema, model, Types, Document } from "mongoose"; export interface Role extends Document { id: bigint; + guild_id: bigint; color: number; hoist: boolean; managed: boolean; @@ -16,6 +17,7 @@ export interface Role extends Document { export const RoleSchema = new Schema({ id: Types.Long, + guild_id: Types.Long, color: Number, hoist: Boolean, managed: Boolean,