diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-21 22:24:53 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-21 22:24:53 -0400 |
| commit | b60e681998a456adecb93b5fe04b66ad4ac9abb6 (patch) | |
| tree | 4d12d75ebabaf7754a55196e6ec3c54c705bbaeb /bot/src/commands/eval.js | |
| parent | dc4a767772dc824c67324cacbac4897bdf6c028c (diff) | |
| download | AleeBot-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/eval.js')
| -rw-r--r-- | bot/src/commands/eval.js | 5 |
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; |
