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"); },