Nostrum.Api.add_pinned_channel_message

You're seeing just the function add_pinned_channel_message, go back to Nostrum.Api module for more information.
Link to this function

add_pinned_channel_message(channel_id, message_id)

View Source

Specs

add_pinned_channel_message(
  Nostrum.Struct.Channel.id(),
  Nostrum.Struct.Message.id()
) :: error() | {:ok}

Pins a message in a channel.

This endpoint requires the 'VIEW_CHANNEL', 'READ_MESSAGE_HISTORY', and 'MANAGE_MESSAGES' permissions. It fires the Nostrum.Consumer.message_update/0 and Nostrum.Consumer.channel_pins_update/0 events.

If successful, returns {:ok}. Otherwise, returns a Nostrum.Api.error/0.

Examples

Nostrum.Api.add_pinned_channel_message(43189401384091, 18743893102394)