fix: we actually need to save the config
Node.js CI / Lint and Test (push) Successful in 40s

This commit is contained in:
2025-07-19 22:14:57 -07:00
parent b3333bc513
commit 76b20d9697
2 changed files with 15 additions and 1 deletions
+14
View File
@@ -58,6 +58,20 @@ export const config: Command = async(sorielle, interaction) => {
return; return;
} }
const seconds = interaction.options.getInteger("timeout", true); const seconds = interaction.options.getInteger("timeout", true);
await sorielle.database.vents.upsert({
create: {
channelId: channel.id,
serverId: interaction.guild.id,
ttl: seconds,
},
update: {
channelId: channel.id,
ttl: seconds,
},
where: {
serverId: interaction.guild.id,
},
});
const components = [ const components = [
new ContainerBuilder().addTextDisplayComponents( new ContainerBuilder().addTextDisplayComponents(
new TextDisplayBuilder().setContent( new TextDisplayBuilder().setContent(
+1 -1
View File
@@ -15,7 +15,7 @@ const handlers: { _default: Command } & Record<string, Command> = {
content: `Unknown command: ${interaction.commandName}`, content: `Unknown command: ${interaction.commandName}`,
}); });
}, },
about: about, about: about,
configure: config, configure: config,
}; };