added /forceevaluate

This commit is contained in:
2023-04-09 22:27:14 -05:00
parent 6abe473a73
commit 535c8d0746
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
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");
},
};