aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/timer.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-21 22:24:53 -0400
committerAndrew Lee <andrew@alee14.me>2025-03-21 22:24:53 -0400
commitb60e681998a456adecb93b5fe04b66ad4ac9abb6 (patch)
tree4d12d75ebabaf7754a55196e6ec3c54c705bbaeb /bot/src/commands/timer.js
parentdc4a767772dc824c67324cacbac4897bdf6c028c (diff)
downloadAleeBot-b60e681998a456adecb93b5fe04b66ad4ac9abb6.tar.gz
AleeBot-b60e681998a456adecb93b5fe04b66ad4ac9abb6.tar.bz2
AleeBot-b60e681998a456adecb93b5fe04b66ad4ac9abb6.zip
Minor code fixes; Ditching settings on Discord in favour of using an API
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);