aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/eval.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/eval.js')
-rw-r--r--bot/src/commands/eval.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/src/commands/eval.js b/bot/src/commands/eval.js
index 598c7fd..68f3003 100644
--- a/bot/src/commands/eval.js
+++ b/bot/src/commands/eval.js
@@ -1,14 +1,13 @@
-import { SlashCommandBuilder } from 'discord.js';
+import { MessageFlags, SlashCommandBuilder } from 'discord.js';
import { inspect } from 'util';
import { userWhitelist } from '../storage/consts.js';
-
export default {
data: new SlashCommandBuilder()
.setName('eval')
.setDescription('Evaluates code'),
async execute(interaction) {
- if (!userWhitelist.includes(interaction.user.id)) return await interaction.reply('Nope! You don\'t have permission to use this command.');
+ if (!userWhitelist.includes(interaction.user.id)) return await interaction.reply({ content: 'Nope! You don\'t have permission to use this command.', flags: MessageFlags.Ephemeral });
await interaction.reply('You have entered evaluation mode. Enter the code for AleeBot to evaluate.\nType in `exit` to exit evaluation mode.');
let evaled;