We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1225409 commit 9681969Copy full SHA for 9681969
docs/quick_start/Getting_Started.mdx
@@ -502,6 +502,10 @@ const componentId = data.custom_id;
502
// Get user ID and object choice for responding user
503
// User ID is in user field for (G)DMs, and member for servers
504
const userId = context === 0 ? req.body.member.user.id : req.body.user.id;
505
+
506
+ // User's object choice
507
+ const objectName = data.values[0];
508
509
// Calculate result from helper function
510
const resultStr = getResult(activeGames[gameId], {
511
id: userId,
0 commit comments