KevinAdhaikal / CAINode

A lightweight unofficial Character.AI API in Node/Deno/Bun JS.
https://www.npmjs.com/package/cainode
30 stars 7 forks source link

chat.pin_message() won't unpin messages. #9

Open wang-yuwen opened 3 hours ago

wang-yuwen commented 3 hours ago

So pinning messages works fine, but putting the 'false' value doesn't seem to unpin messages. I've tried sending some other requests but couldn't find a separate 'command' to unpin a turn. Putting "set_turn_pin" seems to always pin the message even if "is_pinned" is set to false.

KevinAdhaikal commented 3 hours ago

did you try make the second parameter to false? like await client.chat.pin_message("turn ID", false, "Chat ID")