Skip to content

Commit 9681969

Browse files
authored
update guide (missing objectName) to match examples/app.js (#7359)
1 parent 1225409 commit 9681969

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/quick_start/Getting_Started.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ const componentId = data.custom_id;
502502
// Get user ID and object choice for responding user
503503
// User ID is in user field for (G)DMs, and member for servers
504504
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+
505509
// Calculate result from helper function
506510
const resultStr = getResult(activeGames[gameId], {
507511
id: userId,

0 commit comments

Comments
 (0)