Util.Pad.next() - shysolocup/noscord.js GitHub Wiki

goes to the next page, if it goes past the last page it repeats back to page 1
type: Function

arguments:

  • by Number: defaults to 1

let pad = new util.Pad(2, [ 
    "a", "b", // page 1
    "c", "d", // page 2
]);


pad.current; // [ "a", "b" ]


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


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


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