Add additional stories
This commit is contained in:
parent
f86730f993
commit
39efc2608c
@ -42,14 +42,14 @@ module.exports = {
|
|||||||
const channel = client.channels.cache.get(interaction.channel.id);
|
const channel = client.channels.cache.get(interaction.channel.id);
|
||||||
channel.send({ content: 'Select a story', components: [row], fetchMessage: true });
|
channel.send({ content: 'Select a story', components: [row], fetchMessage: true });
|
||||||
client.on(Events.InteractionCreate, interaction => {
|
client.on(Events.InteractionCreate, interaction => {
|
||||||
interaction.deferUpdate();
|
//interaction.deferUpdate();
|
||||||
if (!interaction.isStringSelectMenu()) return;
|
if (!interaction.isStringSelectMenu()) return;
|
||||||
selectedStory = interaction.values[0];
|
selectedStory = interaction.values[0];
|
||||||
console.log("User selected: " +selectedStory);
|
console.log("User selected: " +selectedStory);
|
||||||
initGame(interaction.channel.id, client, interaction, selectedStory);
|
initGame(interaction.channel.id, client, interaction, selectedStory);
|
||||||
//storySelectMessage.delete();
|
//storySelectMessage.delete();
|
||||||
console.log(interaction);
|
//console.log(interaction);
|
||||||
interaction.channel.send("Started game!");
|
//interaction.channel.send("Started game!");
|
||||||
//interaction.deleteReply();
|
//interaction.deleteReply();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user