Markoudstaal / node-red-contrib-discord-advanced

Recieve, send, edit and delete Discord messages in node-red.
MIT License
46 stars 16 forks source link

Can't set bot status with discordActivity #79

Closed Ithoh closed 1 year ago

Ithoh commented 1 year ago

Hello I'm facing an issue trying to set the status of my bot I get the following error :

TypeError: Cannot set properties of undefined (setting 'status')

It happens when trying to simply set the status of the bot, however the activity text and the type (playing, streaming etc.) is being set correctly, this raises an error but manage to set some of the properties.

Exemple flow to re-create below :

[{"id":"886b15f03d803997","type":"discordActivity","z":"a17ac7839e92d30d","name":"","token":"","x":400,"y":480,"wires":[[]]},{"id":"76ed58687f5dd155","type":"inject","z":"a17ac7839e92d30d","name":"","props":[{"p":"type","v":"0","vt":"num"},{"p":"text","v":"Test","vt":"str"},{"p":"status","v":"online","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":210,"y":480,"wires":[["886b15f03d803997","98ca843c2c14c64d"]]},{"id":"98ca843c2c14c64d","type":"debug","z":"a17ac7839e92d30d","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":380,"y":540,"wires":[]}]

Best regards.