[ { "id": "12ea24efa9928ba3", "type": "function", "z": "ee8066c7e5f4a392", "name": "EditReply with components on ephemeral", "func": "let newMessage = {};\nnewMessage.payload = {\n content: \"Select an option\",\n components: \n [\n \n {\n \"type\": 1,\n \"components\": [\n {\n \"type\": 2,\n \"label\": \"Option 1\",\n \"style\": 3,\n \"custom_id\": \"click_opt1\"\n },\n {\n \"type\": 2,\n \"label\": \"Option 2\",\n \"style\": 4,\n \"custom_id\": \"click_opt2\"\n }\n ]\n\n }\n ]\n};\nnewMessage.interactionId = msg.payload.id;\nreturn newMessage;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 440, "y": 200, "wires": [ [ "c7b2608111ca0e1a" ] ] }, { "id": "43955ee961751c78", "type": "discordInteraction", "z": "ee8066c7e5f4a392", "name": "echo2 Slash Command", "token": "", "interactionType": "command", "custom_id": "echo2", "commandResponse": "Command in proccess, wait a moment...", "interactionObject": false, "ephemeral": false, "responseType": "update", "x": 150, "y": 200, "wires": [ [] ] }, { "id": "db6b87a5a0dc0b28", "type": "debug", "z": "ee8066c7e5f4a392", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 950, "y": 200, "wires": [] }, { "id": "c7b2608111ca0e1a", "type": "discordInteractionManager", "z": "ee8066c7e5f4a392", "name": "", "token": "", "x": 760, "y": 200, "wires": [ [ "db6b87a5a0dc0b28" ] ] }, { "id": "d8fe23c66cc9d248", "type": "comment", "z": "ee8066c7e5f4a392", "name": "Reply automatically", "info": "", "x": 230, "y": 160, "wires": [] }, { "id": "4a30510bcb295f34", "type": "comment", "z": "ee8066c7e5f4a392", "name": "Interaction: Edit reply with components", "info": "", "x": 730, "y": 160, "wires": [] } ]