Add additional stories

master
Caleb Fontenot 2023-04-07 10:49:44 +07:00
parent f86730f993
commit 39efc2608c
1 changed files with 3 additions and 3 deletions

@ -42,14 +42,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();
//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!");
//console.log(interaction);
//interaction.channel.send("Started game!");
//interaction.deleteReply();
});