Skip to content

Commit a7ab6cb

Browse files
authored
add missing return, indent componentId (#7400)
1 parent b153780 commit a7ab6cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/quick_start/Getting_Started.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ Paste the following code under the type handler for `APPLICATION_COMMAND`s:
398398

399399
```javascript
400400
if (type === InteractionType.MESSAGE_COMPONENT) {
401-
// custom_id set in payload when sending message component
402-
const componentId = data.custom_id;
401+
// custom_id set in payload when sending message component
402+
const componentId = data.custom_id;
403403

404404
if (componentId.startsWith('accept_button_')) {
405405
// get the associated game ID
@@ -435,6 +435,7 @@ const componentId = data.custom_id;
435435
console.error('Error sending message:', err);
436436
}
437437
}
438+
return;
438439
}
439440
```
440441

@@ -536,6 +537,7 @@ const componentId = data.custom_id;
536537
}
537538
}
538539
}
540+
return;
539541
}
540542
```
541543

0 commit comments

Comments
 (0)