From 3954122d58141ff372332a030c3dc9d3103d5e9e Mon Sep 17 00:00:00 2001 From: nin0 Date: Wed, 30 Apr 2025 19:27:13 -0400 Subject: [PATCH] remove eval --- index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/index.js b/index.js index 72b73f7..27945d8 100644 --- a/index.js +++ b/index.js @@ -68,12 +68,6 @@ client.on("ready", () => { description: "...", type: ApplicationCommandOptionTypes.BOOLEAN, required: false - }, - { - name: "eval", - description: "...", - type: ApplicationCommandOptionTypes.BOOLEAN, - required: false } ] } @@ -87,14 +81,8 @@ client.on("interactionCreate", async (interaction) => { if (interaction.data.type === ApplicationCommandTypes.CHAT_INPUT) { const content = interaction.data.options.getString("content", true); const raw = interaction.data.options.getBoolean("raw"); - const shouldEval = interaction.data.options.getBoolean("eval"); - interaction.createFollowup( - shouldEval - ? { - content: await evaluate(content, interaction) - } - : raw + interaction.createFollowup(raw ? JSON.parse(content) : { content