This modules duplicate the chat tab, one with all messages and the second with pinned messages.
Allow user to pinned a chat message from the chat tab to be shown in the pinned message tab.
Allow user to unpinned a chat message.
By default, you can only pinned message that you owned if you're are not GM. But it can be change in the settings
API
The expose 3 methods by api : game.modules.get('pinned-chat-message').api.methodXXX
pinnedMessage
game.modules.get('pinned-chat-message').api.pinnedMessage(inputChatMessage)
Pinned the input message.
The input message can be a chat message or his id
unpinnedMessage
game.modules.get('pinned-chat-message').api.pinnedMessage(unpinnedMessage)
Unpinned the input message.
The input message can be a chat message or his id
togglePinnedMessage
game.modules.get('pinned-chat-message').api.togglePinnedMessage(inputChatMessage)
Pinned an unpinned input message and unpinned a pinned input message.
The input message can be a chat message or his id