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

get_channel_messages(channel_id, limit, locator \\ {})

View Source


get_channel_messages(, limit(), locator()) ::
  error() | {:ok, [Nostrum.Struct.Message.t()]}

Retrieves a channel's messages around a locator up to a limit.

This endpoint requires the 'VIEW_CHANNEL' permission. If the current user is missing the 'READ_MESSAGE_HISTORY' permission, then this function will return no messages.

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


Nostrum.Api.get_channel_messages(43189401384091, 5, {:before, 130230401384})