aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Level.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:01:46 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:01:46 -0500
commitfce1fc87feb3e6dad1a956d757d856833c9ea5f6 (patch)
tree723ca41af60df525b89c6ff5b4e9574f78235734 /src/lib/models/Level.ts
parent23bf2485fe17472f17bd0ee0af6b22973e317550 (diff)
downloadtanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.tar.gz
tanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.tar.bz2
tanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.zip
update contributors, fix formatting, added a bunch of repo forks
Diffstat (limited to 'src/lib/models/Level.ts')
-rw-r--r--src/lib/models/Level.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/models/Level.ts b/src/lib/models/Level.ts
index f1083fc..baf359b 100644
--- a/src/lib/models/Level.ts
+++ b/src/lib/models/Level.ts
@@ -2,7 +2,7 @@ import { type Snowflake } from 'discord.js';
import { type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel.js';
-const { DataTypes } = (await import('sequelize')).default
+const { DataTypes } = (await import('sequelize')).default;
export interface LevelModel {
user: Snowflake;
@@ -17,13 +17,13 @@ export interface LevelModelCreationAttributes {
}
export class Level extends BaseModel<LevelModel, LevelModelCreationAttributes> implements LevelModel {
- /**
- * The user's id.
+ /**
+ * The user's id.
*/
public declare user: Snowflake;
- /**
- * The guild where the user is gaining xp.
+ /**
+ * The guild where the user is gaining xp.
*/
public declare guild: Snowflake;
@@ -32,8 +32,8 @@ export class Level extends BaseModel<LevelModel, LevelModelCreationAttributes> i
*/
public declare xp: number;
- /**
- * The user's level.
+ /**
+ * The user's level.
*/
public get level(): number {
return Level.convertXpToLevel(this.xp);