channelPinsUpdate get the pinned/unpinned message
I'm trying to get the most recently pinned or unpinned message from the channelPinsUpdate event. The event returns a channel and a date.
You can get all pinned messages by using
It's not possible to know if a message was pinned or unpinned since the date is always provided.
The message class has no property for when it was pinned, so you can't go through all pinned messages and then find the one that matches the date that's given to you...
Is there any other way to actually get that one message that just got pinned or unpinned?
You can get all pinned messages by using
channel.messages.fetchPinned()It's not possible to know if a message was pinned or unpinned since the date is always provided.
The message class has no property for when it was pinned, so you can't go through all pinned messages and then find the one that matches the date that's given to you...
Is there any other way to actually get that one message that just got pinned or unpinned?