aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Guild.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-27 10:33:38 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-27 10:33:38 -0400
commiteae976c648cfaae11dcb6e03be3fb263ced6260c (patch)
treef5420998c0ddc777d526a3168ab7f12dd8ac1ad8 /src/lib/models/Guild.ts
parent921e98369c8a8aa58220a232eb8b711be59f9884 (diff)
downloadtanzanite-eae976c648cfaae11dcb6e03be3fb263ced6260c.tar.gz
tanzanite-eae976c648cfaae11dcb6e03be3fb263ced6260c.tar.bz2
tanzanite-eae976c648cfaae11dcb6e03be3fb263ced6260c.zip
testing sub commands
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: {