From 5aee359cf385dca7b19fb9e94761f4b13a3efeb0 Mon Sep 17 00:00:00 2001 From: Intevel ツ <59223342+Intevel@users.noreply.github.com> Date: Sun, 21 Feb 2021 12:24:02 +0100 Subject: BanModel Update I edited the ban scheme and added a new value --- src/models/Ban.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/models/Ban.ts b/src/models/Ban.ts index 23fc336c..0d8afd0e 100644 --- a/src/models/Ban.ts +++ b/src/models/Ban.ts @@ -4,6 +4,7 @@ import db from "../util/Database"; export interface Ban extends Document { user_id: bigint; guild_id: bigint; + executor_id: BigInt, ip: string; reason?: string; } @@ -11,6 +12,7 @@ export interface Ban extends Document { export const BanSchema = new Schema({ user_id: { type: Types.Long, required: true }, guild_id: { type: Types.Long, required: true }, + executor_id: { type: BigInt, required: true }, reason: String, ip: String, // ? Should we store this in here, or in the UserModel? }); -- cgit 1.5.1