added /forceevaluate
This commit is contained in:
parent
7e56e2f713
commit
b71789d7de
@ -10,10 +10,8 @@ module.exports = {
|
|||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
),
|
),
|
||||||
async execute(interaction, client) {
|
async execute(interaction, client) {
|
||||||
if (interaction.options.getString('messageid') !== null) {
|
|
||||||
var messageId = interaction.options.getString('messageid');
|
var messageId = interaction.options.getString('messageid');
|
||||||
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
|
const messagefromId = await client.channels.cache.get(interaction.channel.id).messages.fetch(messageId);
|
||||||
}
|
|
||||||
global.checkMessage(messagefromId);
|
global.checkMessage(messagefromId);
|
||||||
console.log("User " + interaction.user.tag + " ran /forceevaluate");
|
console.log("User " + interaction.user.tag + " ran /forceevaluate");
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user