aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Guild.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/Guild.ts')
-rw-r--r--src/lib/models/Guild.ts6
1 files changed, 5 insertions, 1 deletions
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: {