aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Level.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/Level.ts')
-rw-r--r--src/lib/models/Level.ts18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/lib/models/Level.ts b/src/lib/models/Level.ts
index d8b98bf..309e6e6 100644
--- a/src/lib/models/Level.ts
+++ b/src/lib/models/Level.ts
@@ -19,25 +19,31 @@ export class Level extends BaseModel<LevelModel, LevelModelCreationAttributes> {
* The user's id.
*/
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 where the user is gaining xp.
*/
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) {}
/**
* The user's xp.
*/
public get xp(): number {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set xp(_: number) {
+ throw new Error('This should never be executed');
}
- public set xp(value: number) {}
public get level(): number {
return Level.convertXpToLevel(this.xp);