aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-14 20:54:55 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-14 20:54:55 -0500
commitde86c77eff4c2dfd5421c9a14a8f88cbac7abd18 (patch)
tree6e9893c4942368398a057acc448ad5e528b5990d /src
parent861273b180f97110fd9aaad0036f29cda0e20015 (diff)
downloadtanzanite-de86c77eff4c2dfd5421c9a14a8f88cbac7abd18.tar.gz
tanzanite-de86c77eff4c2dfd5421c9a14a8f88cbac7abd18.tar.bz2
tanzanite-de86c77eff4c2dfd5421c9a14a8f88cbac7abd18.zip
fix: disable appeals for now
Diffstat (limited to 'src')
-rw-r--r--src/commands/config/features.ts11
-rw-r--r--src/lib/models/instance/Guild.ts6
2 files changed, 12 insertions, 5 deletions
diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts
index 2e7d623..7389ceb 100644
--- a/src/commands/config/features.ts
+++ b/src/commands/config/features.ts
@@ -90,9 +90,14 @@ export default class FeaturesCommand extends BushCommand {
.setMaxValues(1)
.setMinValues(1)
.setOptions(
- guildFeatures.map((f) =>
- new SelectMenuOption().setLabel(guildFeaturesObj[f].name).setValue(f).setDescription(guildFeaturesObj[f].description)
- )
+ guildFeatures
+ .filter((f) => guildFeaturesObj[f].notConfigurable !== false)
+ .map((f) =>
+ new SelectMenuOption()
+ .setLabel(guildFeaturesObj[f].name)
+ .setValue(f)
+ .setDescription(guildFeaturesObj[f].description)
+ )
)
);
}
diff --git a/src/lib/models/instance/Guild.ts b/src/lib/models/instance/Guild.ts
index b81562c..4d7f208 100644
--- a/src/lib/models/instance/Guild.ts
+++ b/src/lib/models/instance/Guild.ts
@@ -311,6 +311,7 @@ interface GuildFeature {
name: string;
description: string;
default: boolean;
+ notConfigurable?: boolean;
}
const asGuildFeature = <T>(gf: { [K in keyof T]: GuildFeature }) => gf;
@@ -389,7 +390,8 @@ export const guildFeaturesObj = asGuildFeature({
punishmentAppeals: {
name: 'Punishment Appeals',
description: 'Allow users to appeal their punishments and send the appeal to the configured channel.',
- default: false
+ default: false,
+ notConfigurable: true
}
});
@@ -412,7 +414,7 @@ export const guildLogsObj = {
},
appeals: {
description: 'Where punishment appeals are sent.',
- configurable: true
+ configurable: false
}
};