code: private static MessageSet requestAsMessages(TextChannel channel, int limit, long before, long after) {
          DiscordApiImpl api = (DiscordApiImpl) channel.getApi();
          return new MessageSetImpl(
                  requestAsJsonNodes(channel, limit, before, after).stream()
                          .map(jsonNode -> api.getOrCreateMessage(channel, jsonNode))
                          .collect(Collectors.toList()));
      }
docs: Requests the messages from Discord.
  
  @param channel The channel of which to get messages from.
  @param limit The limit of messages to get.
  @param before Get messages before the message with this id.
  @param after Get messages after the message with this id.
  @return The messages.