generated from nhcarrigan/template
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
@@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user