aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}
};