From b71789d7de556ffa147f4f1f0b8baf525a7b1776 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Sun, 9 Apr 2023 22:36:09 -0500 Subject: [PATCH] added /forceevaluate --- commands/forceEvaluate.cjs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/forceEvaluate.cjs b/commands/forceEvaluate.cjs index 8e583b6..d5ebcb8 100644 --- a/commands/forceEvaluate.cjs +++ b/commands/forceEvaluate.cjs @@ -10,10 +10,8 @@ module.exports = { .setRequired(true) ), async execute(interaction, client) { - if (interaction.options.getString('messageid') !== null) { - var messageId = interaction.options.getString('messageid'); - const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId); - } + var messageId = interaction.options.getString('messageid'); + const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId); global.checkMessage(messagefromId); console.log("User " + interaction.user.tag + " ran /forceevaluate"); },