diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-02 19:33:29 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-02 19:33:29 -0400 |
commit | 34f0d1d3ff3e2a90193c9a4d4de29d8335160d6a (patch) | |
tree | f5a069b332b649f510aac741ae2484e853efc6a2 /src/lib/models/ModLog.ts | |
parent | 6c3ab0e2e4239a2122d1d8ce8ed7bc9673fdde6a (diff) | |
download | tanzanite-34f0d1d3ff3e2a90193c9a4d4de29d8335160d6a.tar.gz tanzanite-34f0d1d3ff3e2a90193c9a4d4de29d8335160d6a.tar.bz2 tanzanite-34f0d1d3ff3e2a90193c9a4d4de29d8335160d6a.zip |
started restructuring moderation commands,
note: nothing currently works :flushed:
Diffstat (limited to 'src/lib/models/ModLog.ts')
-rw-r--r-- | src/lib/models/ModLog.ts | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/models/ModLog.ts b/src/lib/models/ModLog.ts index 94c464d..1d850d9 100644 --- a/src/lib/models/ModLog.ts +++ b/src/lib/models/ModLog.ts @@ -1,3 +1,4 @@ +import { Snowflake } from 'discord.js'; import { DataTypes, Sequelize } from 'sequelize'; import { v4 as uuidv4 } from 'uuid'; import { BaseModel } from './BaseModel'; @@ -16,31 +17,31 @@ export enum ModLogType { export interface ModLogModel { id: string; type: ModLogType; - user: string; - moderator: string; + user: Snowflake; + moderator: Snowflake; reason: string; duration: number; - guild: string; + guild: Snowflake; } export interface ModLogModelCreationAttributes { id?: string; type: ModLogType; - user: string; - moderator: string; + user: Snowflake; + moderator: Snowflake; reason?: string; duration?: number; - guild: string; + guild: Snowflake; } export class ModLog extends BaseModel<ModLogModel, ModLogModelCreationAttributes> implements ModLogModel { id: string; type: ModLogType; - user: string; - moderator: string; - guild: string; + user: Snowflake; + moderator: Snowflake; reason: string | null; duration: number | null; + guild: Snowflake; static initModel(sequelize: Sequelize): void { ModLog.init( |