try to catch if we don't specify an override
This commit is contained in:
parent
8b37f26fbb
commit
8475dc895c
5
index.js
5
index.js
|
@ -785,7 +785,12 @@ client.on("interactionCreate", async interaction => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start a word scramble
|
// Start a word scramble
|
||||||
|
if (interaction.options.get("override")) {
|
||||||
override = interaction.options.get("override").value;
|
override = interaction.options.get("override").value;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
override = false;
|
||||||
|
]
|
||||||
gameData = wordScramble(override);
|
gameData = wordScramble(override);
|
||||||
wordScrambles[interaction.channel.id] = {
|
wordScrambles[interaction.channel.id] = {
|
||||||
word: gameData.word,
|
word: gameData.word,
|
||||||
|
|
Loading…
Reference in a new issue