diff options
Diffstat (limited to 'src/lib/models/ActivePunishment.ts')
-rw-r--r-- | src/lib/models/ActivePunishment.ts | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/src/lib/models/ActivePunishment.ts b/src/lib/models/ActivePunishment.ts index c204c9a..a757b10 100644 --- a/src/lib/models/ActivePunishment.ts +++ b/src/lib/models/ActivePunishment.ts @@ -37,57 +37,71 @@ export class ActivePunishment * The ID of this punishment (no real use just for a primary key) */ public get id(): string { - return null; + throw new Error('This should never be executed'); + } + public set id(_: string) { + throw new Error('This should never be executed'); } - public set id(value: string) {} /** * The type of punishment. */ public get type(): ActivePunishmentType { - return null; + throw new Error('This should never be executed'); + } + public set type(_: ActivePunishmentType) { + throw new Error('This should never be executed'); } - public set type(value: ActivePunishmentType) {} /** * The user who is punished. */ public get user(): Snowflake { - return null; + throw new Error('This should never be executed'); + } + public set user(_: Snowflake) { + throw new Error('This should never be executed'); } - public set user(value: Snowflake) {} /** * The guild they are punished in. */ public get guild(): Snowflake { - return null; + throw new Error('This should never be executed'); + } + public set guild(_: Snowflake) { + throw new Error('This should never be executed'); } - public set guild(value: Snowflake) {} /** * Additional info about the punishment if applicable. The channel id for channel blocks and role for punishment roles. */ public get extraInfo(): Snowflake { - return null; + throw new Error('This should never be executed'); + } + public set extraInfo(_: Snowflake) { + throw new Error('This should never be executed'); } - public set extraInfo(value: Snowflake) {} /** * The date when this punishment expires (optional). */ public get expires(): Date | null { - return null; + throw new Error('This should never be executed'); + } + public set expires(_: Date | null) { + throw new Error('This should never be executed'); } - public set expires(value: Date | null) {} /** * The reference to the modlog entry. */ public get modlog(): string { - return null; + throw new Error('This should never be executed'); + } + public set modlog(_: string) { + throw new Error('This should never be executed'); } - public set modlog(value: string) {} static initModel(sequelize: Sequelize): void { ActivePunishment.init( |