Util.pad() - shysolocup/noscord.js GitHub Wiki

creates a new paged list
type: Function

arguments:

  • per Number: how many entries should be included per page
  • object Array/Object
  • start Number: what page it starts on

let pad = util.pad(2, [ "a", "b", "c", "d" ]);

console.log(pad.current); // ["a", "b"]

pad.next();

console.log(pad.current); // ["c", "d"]


⚠️ **GitHub.com Fallback** ⚠️