fix: Starboard
This commit is contained in:
@@ -214,11 +214,17 @@ export async function routeCommand(interaction: ChatInputCommandInteraction, con
|
||||
moduleId
|
||||
);
|
||||
if (!enabled) {
|
||||
await interaction.reply({
|
||||
content: t(locale, 'generic.moduleDisabled'),
|
||||
ephemeral: true
|
||||
});
|
||||
return;
|
||||
// Allow first-time setup while the module is still disabled (chicken-egg).
|
||||
const sub = interaction.options.getSubcommand(false);
|
||||
const isBootstrapSetup =
|
||||
interaction.commandName === 'starboard' && sub === 'setup';
|
||||
if (!isBootstrapSetup) {
|
||||
await interaction.reply({
|
||||
content: t(locale, 'generic.moduleDisabled'),
|
||||
ephemeral: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user