diff options
Diffstat (limited to 'src/lib/utils/BushCache.ts')
-rw-r--r-- | src/lib/utils/BushCache.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/utils/BushCache.ts b/src/lib/utils/BushCache.ts index 5654495..1f50fba 100644 --- a/src/lib/utils/BushCache.ts +++ b/src/lib/utils/BushCache.ts @@ -1,4 +1,4 @@ -import { type Guild } from '#lib'; +import { BadWords, GlobalModel, SharedModel, type Guild } from '#lib'; import { Collection, type Snowflake } from 'discord.js'; export class BushCache { @@ -7,16 +7,19 @@ export class BushCache { public guilds = new GuildCache(); } -export class GlobalCache { +export class GlobalCache implements Omit<GlobalModel, 'environment'> { public disabledCommands: string[] = []; public blacklistedChannels: Snowflake[] = []; public blacklistedGuilds: Snowflake[] = []; public blacklistedUsers: Snowflake[] = []; } -export class SharedCache { +export class SharedCache implements Omit<SharedModel, 'primaryKey'> { public superUsers: Snowflake[] = []; + public privilegedUsers: Snowflake[] = []; + public badLinksSecret: string[] = []; public badLinks: string[] = []; + public badWords: BadWords = {}; } export class GuildCache extends Collection<Snowflake, Guild> {} |