aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/timer.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/timer.js')
-rw-r--r--bot/src/commands/timer.js4
1 files changed, 2 insertions, 2 deletions
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);