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:
398
398
399
399
``` javascript
400
400
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 ;
403
403
404
404
if (componentId .startsWith (' accept_button_' )) {
405
405
// get the associated game ID
@@ -435,6 +435,7 @@ const componentId = data.custom_id;
435
435
console .error (' Error sending message:' , err);
436
436
}
437
437
}
438
+ return ;
438
439
}
439
440
```
440
441
@@ -536,6 +537,7 @@ const componentId = data.custom_id;
536
537
}
537
538
}
538
539
}
540
+ return ;
539
541
}
540
542
```
541
543
You can’t perform that action at this time.
0 commit comments