$getComponentCustomID
$getComponentCustomID
returns the custom ID of the current used interaction component.
Usage
$getComponentCustomID
Example(s)
This will return the custom ID of the button, which is exampleButton
:
1client.command({2 name: "examplecommand",3 code: `4 Hello!5 $addButton[1;Example Button!;primary;exampleButton;false;💔]6 `7});
1client.interactionCommand({2 name: "exampleButton",3 prototype: "button",4 code: `$interactionReply[The button's custom ID: $getComponentCustomID]`5});