Include Pinned/Unpinned Message Field in Websocket's Channel Pins Update Event
I'm writing a bot library and I'm trying to add an event that triggers whenever a message is pinned or unpinned. There's a websocket event for this, but surprisingly it doesn't tell you which message got pinned/unpinned, making the event pretty much useless. It'd be great if the websocket would include the message object in the event.
15
-
As a workaround, you can get last pinned messages and check that the timestamp matches the `last_pin_timestamp?` field. But it would indeed be much simpler if the event included the message, which seems pretty natural.
0
Iniciar sesión para dejar un comentario.
Comentarios
1 comentario