File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -398,8 +398,8 @@ Paste the following code under the type handler for `APPLICATION_COMMAND`s:
398398
399399``` javascript
400400if (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
You can’t perform that action at this time.
0 commit comments