summary refs log tree commit diff
path: root/src/models/Channel.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-08 16:51:45 +0200
committerGitHub <noreply@github.com>2021-04-08 16:51:45 +0200
commitc5c2af70a5c27a1bc461547a51fb3379416ccf8f (patch)
tree6cdf25485d11d7aae1a2a4efeab10e2b12ae8b86 /src/models/Channel.ts
parentMerge branch 'main' of https://github.com/fosscord/fosscord-server-util (diff)
parentadded toBigInt and BigInt getters to bitfields (diff)
downloadserver-c5c2af70a5c27a1bc461547a51fb3379416ccf8f.tar.xz
Merge pull request #4 from notsapinho/main
added toBigInt and BigInt getters to bitfields
Diffstat (limited to 'src/models/Channel.ts')
-rw-r--r--src/models/Channel.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/models/Channel.ts b/src/models/Channel.ts

index 82ad2999..1b9a167c 100644 --- a/src/models/Channel.ts +++ b/src/models/Channel.ts
@@ -1,5 +1,6 @@ import { Schema, model, Types, Document } from "mongoose"; import db from "../util/Database"; +import toBigInt from "../util/toBigInt"; export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel {} @@ -24,8 +25,8 @@ export const ChannelSchema = new Schema({ topic: String, permission_overwrites: [ { - allow: Types.Long, - deny: Types.Long, + allow: { type: String, get: toBigInt }, + deny: { type: String, get: toBigInt }, id: String, type: Number, },