updateMessagePin

Pins or unpins the message from the current channel based on its state.

Parameters

message

The message to update the pin state of.