Skip to content

Examples

Gago edited this page Apr 16, 2021 · 3 revisions

Get Messages node

Get messages and reactions from discord

[{"id":"9de3fb00.1bb448","type":"discord-get-messages","z":"ade436d0.2dc268","name":"","token":"52e51e2e.e4cb1","dm":false,"news":false,"channels":"","mentions":false,"reactions":true,"x":150,"y":100,"wires":[["7706d04b.12189"]]},{"id":"7706d04b.12189","type":"debug","z":"ade436d0.2dc268","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":420,"y":100,"wires":[]},{"id":"52e51e2e.e4cb1","type":"discord-token","name":"receiver"}]

Get messages and reactions from provided channels and DM ones

[{"id":"9de3fb00.1bb448","type":"discord-get-messages","z":"ade436d0.2dc268","name":"","token":"52e51e2e.e4cb1","dm":false,"news":false,"channels":"637030062155235334, 641906450029084672, 648891720259338281","mentions":false,"reactions":true,"x":150,"y":100,"wires":[["7706d04b.12189"]]},{"id":"7706d04b.12189","type":"debug","z":"ade436d0.2dc268","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":420,"y":100,"wires":[]},{"id":"52e51e2e.e4cb1","type":"discord-token","name":"receiver"}]

Get messages only from provided channels

[{"id":"9de3fb00.1bb448","type":"discord-get-messages","z":"ade436d0.2dc268","name":"","token":"52e51e2e.e4cb1","dm":true,"news":false,"channels":"637030062155235334, 641906450029084672, 648891720259338281","mentions":false,"reactions":false,"x":150,"y":100,"wires":[["7706d04b.12189"]]},{"id":"7706d04b.12189","type":"debug","z":"ade436d0.2dc268","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":420,"y":100,"wires":[]},{"id":"52e51e2e.e4cb1","type":"discord-token","name":"receiver"}]

Send Messages node

Send a simple message to a defined channel

[{"id":"f114f055.efd18","type":"discord-send-messages","z":"ade436d0.2dc268","name":"","token":"ad007433.344158","dm":"","channel":"637030062155235334","x":560,"y":340,"wires":[]},{"id":"d0055a26.182a48","type":"inject","z":"ade436d0.2dc268","name":"","props":[{"p":"msg","v":"test message","vt":"str"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":210,"y":340,"wires":[["f114f055.efd18"]]},{"id":"ad007433.344158","type":"discord-token","name":"sender"}]

Send a message to channel passing channel ID from outside

[{"id":"f114f055.efd18","type":"discord-send-messages","z":"ade436d0.2dc268","name":"","token":"ad007433.344158","dm":"","channel":"","x":560,"y":340,"wires":[]},{"id":"d0055a26.182a48","type":"inject","z":"ade436d0.2dc268","name":"","props":[{"p":"msg","v":"test message","vt":"str"},{"p":"channel","v":"637030062155235334","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":210,"y":340,"wires":[["f114f055.efd18"]]},{"id":"ad007433.344158","type":"discord-token","name":"sender"}]

Send a message to multiple channels and DM it to specified user

[{"id":"f114f055.efd18","type":"discord-send-messages","z":"ade436d0.2dc268","name":"","token":"ad007433.344158","dm":"","channel":"","x":560,"y":340,"wires":[]},{"id":"d0055a26.182a48","type":"inject","z":"ade436d0.2dc268","name":"","props":[{"p":"msg","v":"test message","vt":"str"},{"p":"channel","v":"637030062155235334, 641906450029084672, 648891720259338281","vt":"str"},{"p":"dm","v":"458999276228575232","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":210,"y":340,"wires":[["f114f055.efd18"]]},{"id":"ad007433.344158","type":"discord-token","name":"sender"}]

Clone this wiki locally