aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/ModLog.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/ModLog.ts')
-rw-r--r--src/lib/models/ModLog.ts21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/models/ModLog.ts b/src/lib/models/ModLog.ts
index 6261794..40dc86d 100644
--- a/src/lib/models/ModLog.ts
+++ b/src/lib/models/ModLog.ts
@@ -38,12 +38,33 @@ export interface ModLogModelCreationAttributes {
}
export class ModLog extends BaseModel<ModLogModel, ModLogModelCreationAttributes> implements ModLogModel {
+ /**
+ * The primary key of the modlog entry.
+ */
id: string;
+ /**
+ * The type of punishment.
+ */
type: ModLogType;
+ /**
+ * The user being punished.
+ */
user: Snowflake;
+ /**
+ * The user carrying out the punishment.
+ */
moderator: Snowflake;
+ /**
+ * The reason the user is getting punished
+ */
reason: string | null;
+ /**
+ * The amount of time the user is getting punished for.
+ */
duration: number | null;
+ /**
+ * The guild the user is getting punished in.
+ */
guild: Snowflake;
static initModel(sequelize: Sequelize): void {