I cannot create a new direct message for more than one user and the documentation is incomplete in this case. Maybe it’s even a bug.
for the single user (request below) it works:
{"username":"user1"}
for multiple:
{"usernames":["user1","user2","user3"]}
I’m getting an error:
succes: false
error: "usernames.split is not a function"
The documentation specifies a ‘list’ but without any sample for the formatting.
It should be probably just a JSON formatted array, but nothing seems to be working, neither the concatenation of all of the names, nor sending them as a raw text or even the JSON.stringify method
Version
3.12.0
Deployment-ID
wkKLZZRE9XEGipXXB
Version der Anwendungsumgebung
1.23.0
Node-Version
v12.18.4
Datenbankmigration
218 (11. März 2021 11:46
MongoDB
4.0.22 / mmapv1 (oplog Aktiviert)
Commit Details
HEAD: (7551a1650)
Zweig: HEAD
PID
9