Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/quick_start/Getting_Started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ const componentId = data.custom_id;
// Get user ID and object choice for responding user
// User ID is in user field for (G)DMs, and member for servers
const userId = context === 0 ? req.body.member.user.id : req.body.user.id;

// User's object choice
const objectName = data.values[0];

// Calculate result from helper function
const resultStr = getResult(activeGames[gameId], {
id: userId,
Expand Down
Loading