From a6077af7f5d5836d1637d86256ba2689351ca581 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 20:03:03 -0500 Subject: [PATCH] Add Linux themed madlib written by ChatGPT --- commands/startMadlib.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/startMadlib.cjs b/commands/startMadlib.cjs index b6873e4..b71c0be 100644 --- a/commands/startMadlib.cjs +++ b/commands/startMadlib.cjs @@ -41,12 +41,14 @@ module.exports = { const channel = client.channels.cache.get(interaction.channel.id); channel.send({ content: 'Select a story', components: [row], fetchMessage: true }); client.on(Events.InteractionCreate, interaction => { + interaction.deferUpdate(); if (!interaction.isStringSelectMenu()) return; selectedStory = interaction.values[0]; console.log("User selected: " +selectedStory); initGame(interaction.channel.id, client, interaction, selectedStory); //storySelectMessage.delete(); console.log(interaction); + interaction.channel.send("Started game!"); }); }