これはうまくいくけど、
let text_length = pushText.length;
pushText += "$"
// チャンネルに登録されている方たちに連絡
client.broadcast([{
type: "text",
text: pushText,
"emojis": [
{
"index": text_length,
"productId": "5ac1bfd5040ab15980c9b435",
"emojiId": "002"
}
]
}]).then(data => console.log(data))
こっちのスタンプはうまくいかんのなんでやろ。指定の仕方がまちがってるのか?
client.broadcast([{
type: "sticker",
packageId: "11537",
stickerId: "520027451"
}]).then(data => console.log(data))
.catch(e => console.log(e))
追記⇒ただのIDのコピペミス!!「520027451」の最後の1がいらなかった。見たところ、他のも全部8桁や。