NoMoreAcronyms/commands/forceEvaluate.cjs

13 lines
516 B
JavaScript

const { SlashCommandBuilder, Discord } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('forceevaluate')
.setDescription('Makes the bot re-evaluate a message even if that person is exempt for a single message.'),
async execute(interaction, client) {
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
global.checkMessage(messagefromId);
console.log("User " + interaction.user.tag + " ran /forceevaluate");
},
};