aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Global.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/Global.ts')
-rw-r--r--src/lib/models/Global.ts36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/lib/models/Global.ts b/src/lib/models/Global.ts
index 80f11ca..a685d91 100644
--- a/src/lib/models/Global.ts
+++ b/src/lib/models/Global.ts
@@ -25,49 +25,61 @@ export class Global extends BaseModel<GlobalModel, GlobalModelCreationAttributes
* The bot's environment.
*/
public get environment(): 'production' | 'development' | 'beta' {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set environment(_: 'production' | 'development' | 'beta') {
+ throw new Error('This should never be executed');
}
- public set environment(value: 'production' | 'development' | 'beta') {}
/**
* Trusted users.
*/
public get superUsers(): Snowflake[] {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set superUsers(_: Snowflake[]) {
+ throw new Error('This should never be executed');
}
- public set superUsers(value: Snowflake[]) {}
/**
* Globally disabled commands.
*/
public get disabledCommands(): string[] {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set disabledCommands(_: string[]) {
+ throw new Error('This should never be executed');
}
- public set disabledCommands(value: string[]) {}
/**
* Globally blacklisted users.
*/
public get blacklistedUsers(): Snowflake[] {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set blacklistedUsers(_: Snowflake[]) {
+ throw new Error('This should never be executed');
}
- public set blacklistedUsers(value: Snowflake[]) {}
/**
* Guilds blacklisted from using the bot.
*/
public get blacklistedGuilds(): Snowflake[] {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set blacklistedGuilds(_: Snowflake[]) {
+ throw new Error('This should never be executed');
}
- public set blacklistedGuilds(value: Snowflake[]) {}
/**
* Channels where the bot is prevented from running.
*/
public get blacklistedChannels(): Snowflake[] {
- return null;
+ throw new Error('This should never be executed');
+ }
+ public set blacklistedChannels(_: Snowflake[]) {
+ throw new Error('This should never be executed');
}
- public set blacklistedChannels(value: Snowflake[]) {}
static initModel(sequelize: Sequelize): void {
Global.init(