From eae976c648cfaae11dcb6e03be3fb263ced6260c Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 27 Aug 2021 10:33:38 -0400 Subject: testing sub commands --- src/lib/models/Guild.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/models/Guild.ts b/src/lib/models/Guild.ts index 66deddb..4a5ede4 100644 --- a/src/lib/models/Guild.ts +++ b/src/lib/models/Guild.ts @@ -38,7 +38,7 @@ export interface GuildModelCreationAttributes { automodLogChannel?: Snowflake; } -export const guildSettings = { +export const guildSettingsObj = { prefix: { name: 'Prefix', description: 'description goes here', @@ -88,6 +88,10 @@ export const guildSettings = { configurable: true } }; +export type GuildSettings = keyof typeof guildSettingsObj; +export const settingsArr = Object.keys(guildSettingsObj).filter( + (s) => guildSettingsObj[s as GuildSettings].configurable +) as GuildSettings[]; export const guildFeaturesObj = { automod: { -- cgit