diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 13:12:32 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-14 13:12:32 -0400 |
commit | 070b5f326d0647e7b105f99811e4bdc915c8652e (patch) | |
tree | 15c5e3366acb9f6056de83924db6dd9db961061a /src/lib/models/ModLog.ts | |
parent | cdb8b0297f806cb3147b3759b0fd234bffbcc3f9 (diff) | |
download | tanzanite-070b5f326d0647e7b105f99811e4bdc915c8652e.tar.gz tanzanite-070b5f326d0647e7b105f99811e4bdc915c8652e.tar.bz2 tanzanite-070b5f326d0647e7b105f99811e4bdc915c8652e.zip |
revamped role command and some other stuff
Diffstat (limited to 'src/lib/models/ModLog.ts')
-rw-r--r-- | src/lib/models/ModLog.ts | 21 |
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 { |