mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
variable naming bug
This commit is contained in:
1
app.js
1
app.js
@@ -25,7 +25,6 @@ let activeGames = {};
|
||||
app.post('/interactions', function (req, res) {
|
||||
// Interaction type and data
|
||||
let { type, id, data } = req.body;
|
||||
console.log(type);
|
||||
|
||||
/**
|
||||
* Handle verification requests
|
||||
|
||||
2
game.js
2
game.js
@@ -82,7 +82,7 @@ export function getShuffledOptions() {
|
||||
// Formatted for select menus
|
||||
// https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure
|
||||
options.push({
|
||||
"label": capitalize(choice),
|
||||
"label": capitalize(c),
|
||||
"value": c.toLowerCase(),
|
||||
"description": RPSChoices[c]["description"]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user