constmessage=awaitinteraction.reply({content:"You have requested to start a madlib game in the current channel. I will intercept any message sent in this channel as game input until the game is over. Please refrain from using this in a busy channel, as it can be annoying for others. Would you like to continue?",fetchReply:true,components:[row]});
client.on(Events.InteractionCreate,interaction=>{
interaction.deferUpdate();
if(!interaction.isButton())return;
if(interaction.customId=='yes'){
console.log("User selected yes");
@ -59,7 +60,7 @@ module.exports = {
channel.send("Game aborted.");
}
}
message.delete();
//message.delete();
});
console.log("User "+interaction.user.tag+" ran /startmadlib");