added /forceevaluate

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-09 22:30:59 +07:00
parent 105f86ffa2
commit 0bbae4f4db
1 changed files with 6 additions and 1 deletions

@ -3,7 +3,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.'),
.setDescription('Makes the bot re-evaluate a message even if that person is exempt for a single message.')
.addStringOption(option =>
option.setName('messageid')
.setDescription("Message ID of message to evaluate")
.setRequired(false)
),
async execute(interaction, client) {
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
global.checkMessage(messagefromId);