diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-08 12:25:35 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-08 12:25:35 -0500 |
commit | 0e160ae77477f0986a02746e84158329299f438f (patch) | |
tree | 55a70950bae700bbd77ff693aecd1b2cbf0777cf /src/lib/models/Global.ts | |
parent | 42eab3390f7e2fcdc020eb1e3d602a46c9f34273 (diff) | |
download | tanzanite-0e160ae77477f0986a02746e84158329299f438f.tar.gz tanzanite-0e160ae77477f0986a02746e84158329299f438f.tar.bz2 tanzanite-0e160ae77477f0986a02746e84158329299f438f.zip |
add shared db
Diffstat (limited to 'src/lib/models/Global.ts')
-rw-r--r-- | src/lib/models/Global.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/models/Global.ts b/src/lib/models/Global.ts index 30a9d38..1deb090 100644 --- a/src/lib/models/Global.ts +++ b/src/lib/models/Global.ts @@ -2,12 +2,10 @@ import { type Snowflake } from 'discord.js'; import { type Sequelize } from 'sequelize'; import { BaseModel } from './BaseModel.js'; import { jsonArray } from './__helpers.js'; - const { DataTypes } = (await import('sequelize')).default; export interface GlobalModel { environment: 'production' | 'development' | 'beta'; - superUsers: Snowflake[]; disabledCommands: string[]; blacklistedUsers: Snowflake[]; blacklistedGuilds: Snowflake[]; @@ -16,7 +14,6 @@ export interface GlobalModel { export interface GlobalModelCreationAttributes { environment: 'production' | 'development' | 'beta'; - superUsers?: Snowflake[]; disabledCommands?: string[]; blacklistedUsers?: Snowflake[]; blacklistedGuilds?: Snowflake[]; @@ -30,11 +27,6 @@ export class Global extends BaseModel<GlobalModel, GlobalModelCreationAttributes public declare environment: 'production' | 'development' | 'beta'; /** - * Trusted users. - */ - public declare superUsers: Snowflake[]; - - /** * Globally disabled commands. */ public declare disabledCommands: string[]; @@ -62,7 +54,6 @@ export class Global extends BaseModel<GlobalModel, GlobalModelCreationAttributes Global.init( { environment: { type: DataTypes.STRING, primaryKey: true }, - superUsers: jsonArray('superUsers'), disabledCommands: jsonArray('disabledCommands'), blacklistedUsers: jsonArray('blacklistedUsers'), blacklistedGuilds: jsonArray('blacklistedGuilds'), |