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

gets a page without changing the current page
type: Function

arguments:

  • page Number

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


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

pad.get(3); // [ "e", "f" ]

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


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