diff options
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( |