From b60e681998a456adecb93b5fe04b66ad4ac9abb6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 21 Mar 2025 22:24:53 -0400 Subject: Minor code fixes; Ditching settings on Discord in favour of using an API --- bot/src/commands/timer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/src/commands/timer.js') diff --git a/bot/src/commands/timer.js b/bot/src/commands/timer.js index 68a113c..c86fd20 100644 --- a/bot/src/commands/timer.js +++ b/bot/src/commands/timer.js @@ -1,4 +1,4 @@ -import { SlashCommandBuilder, time, TimestampStyles } from 'discord.js'; +import { MessageFlags, SlashCommandBuilder, time, TimestampStyles } from 'discord.js'; export default { data: new SlashCommandBuilder() @@ -27,7 +27,7 @@ export default { const hours = interaction.options.getInteger('hours') || 0; const message = interaction.options.getString('message'); const content = message ? `Reason: \`\`\`\n${message}\n\`\`\`` : ''; - if (!seconds && !minutes && !hours) return await interaction.reply({ content: 'Please provide a time to wait for.', ephemeral: true }); + if (!seconds && !minutes && !hours) return await interaction.reply({ content: 'Please provide a time to wait for.', flags: MessageFlags.Ephemeral }); timer = seconds + (minutes * 60) + (hours * 3600); -- cgit v1.2.3