code: public RequestFuture<List<T>> takeAsync(int amount)
      {
          return takeAsync0(amount, (task, list) -> forEachAsync(val -> {
              list.add(val);
              return list.size() < amount;
          }, task::completeExceptionally));
      }
docs: Convenience method to retrieve an amount of entities from this pagination action.
  <br>This also includes already cached entities similar to {@link #forEachAsync(Procedure)}.
  
  @param  amount
  The maximum amount to retrieve
  
  @return {@link net.dv8tion.jda.core.requests.RequestFuture RequestFuture} - Type: {@link java.util.List List}
  
  @see    #forEachAsync(Procedure)