From 7a3974a9c3c043ecdeb68d0d9978a4bacc246f23 Mon Sep 17 00:00:00 2001 From: Parbez <74945038+imranbarbhuiya@users.noreply.github.com> Date: Wed, 22 Dec 2021 09:33:01 +0530 Subject: [PATCH] added new method for paginate through embeds --- docs/assets/highlight.css | 15 +- docs/assets/search.js | 2 +- docs/classes/Pagination.html | 140 ++++++---- docs/index.html | 32 ++- docs/interfaces/ButtonOptions.html | 6 +- docs/interfaces/ButtonOptionsRequired.html | 9 - docs/interfaces/ButtonsOptions.html | 8 +- docs/interfaces/ButtonsOptionsRequired.html | 9 - docs/interfaces/EmojiOptions.html | 8 +- docs/interfaces/LabelOptions.html | 13 + docs/interfaces/Options.html | 38 ++- docs/modules.html | 4 +- readme.md | 73 +++-- src/index.ts | 286 ++++++++++++++------ 14 files changed, 421 insertions(+), 222 deletions(-) delete mode 100644 docs/interfaces/ButtonOptionsRequired.html delete mode 100644 docs/interfaces/ButtonsOptionsRequired.html create mode 100644 docs/interfaces/LabelOptions.html diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index b55a352..dd8fd40 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -11,12 +11,14 @@ --dark-hl-4: #CE9178; --light-hl-5: #001080; --dark-hl-5: #9CDCFE; - --light-hl-6: #008000; - --dark-hl-6: #6A9955; + --light-hl-6: #AF00DB; + --dark-hl-6: #C586C0; --light-hl-7: #098658; --dark-hl-7: #B5CEA8; - --light-hl-8: #AF00DB; - --dark-hl-8: #C586C0; + --light-hl-8: #000000FF; + --dark-hl-8: #D4D4D4; + --light-hl-9: #008000; + --dark-hl-9: #6A9955; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -31,6 +33,7 @@ --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); --code-background: var(--light-code-background); } } @@ -44,6 +47,7 @@ --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); --code-background: var(--dark-code-background); } } @@ -57,6 +61,7 @@ body.light { --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); --code-background: var(--light-code-background); } @@ -70,6 +75,7 @@ body.dark { --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); --code-background: var(--dark-code-background); } @@ -82,4 +88,5 @@ body.dark { .hl-6 { color: var(--hl-6); } .hl-7 { color: var(--hl-7); } .hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } pre, code { background: var(--code-background); } diff --git a/docs/assets/search.js b/docs/assets/search.js index d488da8..37fc7eb 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = {"kinds":{"128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"Options","url":"interfaces/Options.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"limit","url":"interfaces/Options.html#limit","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":2,"kind":1024,"name":"idle","url":"interfaces/Options.html#idle","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":3,"kind":1024,"name":"ephemeral","url":"interfaces/Options.html#ephemeral","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":4,"kind":1024,"name":"prevDescription","url":"interfaces/Options.html#prevDescription","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":5,"kind":1024,"name":"postDescription","url":"interfaces/Options.html#postDescription","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":6,"kind":1024,"name":"attachments","url":"interfaces/Options.html#attachments","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":7,"kind":1024,"name":"buttonStyle","url":"interfaces/Options.html#buttonStyle","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":8,"kind":1024,"name":"loop","url":"interfaces/Options.html#loop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":9,"kind":1024,"name":"firstEmoji","url":"interfaces/Options.html#firstEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":10,"kind":1024,"name":"prevEmoji","url":"interfaces/Options.html#prevEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":11,"kind":1024,"name":"nextEmoji","url":"interfaces/Options.html#nextEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":12,"kind":1024,"name":"lastEmoji","url":"interfaces/Options.html#lastEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":13,"kind":256,"name":"EmojiOptions","url":"interfaces/EmojiOptions.html","classes":"tsd-kind-interface"},{"id":14,"kind":1024,"name":"firstEmoji","url":"interfaces/EmojiOptions.html#firstEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":15,"kind":1024,"name":"prevEmoji","url":"interfaces/EmojiOptions.html#prevEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":16,"kind":1024,"name":"nextEmoji","url":"interfaces/EmojiOptions.html#nextEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":17,"kind":1024,"name":"lastEmoji","url":"interfaces/EmojiOptions.html#lastEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":18,"kind":256,"name":"ButtonOptions","url":"interfaces/ButtonOptions.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"emoji","url":"interfaces/ButtonOptions.html#emoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":20,"kind":1024,"name":"label","url":"interfaces/ButtonOptions.html#label","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":21,"kind":1024,"name":"style","url":"interfaces/ButtonOptions.html#style","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":22,"kind":256,"name":"ButtonOptionsRequired","url":"interfaces/ButtonOptionsRequired.html","classes":"tsd-kind-interface"},{"id":23,"kind":1024,"name":"emoji","url":"interfaces/ButtonOptionsRequired.html#emoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptionsRequired"},{"id":24,"kind":1024,"name":"label","url":"interfaces/ButtonOptionsRequired.html#label","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptionsRequired"},{"id":25,"kind":1024,"name":"style","url":"interfaces/ButtonOptionsRequired.html#style","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptionsRequired"},{"id":26,"kind":256,"name":"ButtonsOptions","url":"interfaces/ButtonsOptions.html","classes":"tsd-kind-interface"},{"id":27,"kind":1024,"name":"first","url":"interfaces/ButtonsOptions.html#first","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":28,"kind":1024,"name":"prev","url":"interfaces/ButtonsOptions.html#prev","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":29,"kind":1024,"name":"next","url":"interfaces/ButtonsOptions.html#next","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":30,"kind":1024,"name":"last","url":"interfaces/ButtonsOptions.html#last","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":31,"kind":256,"name":"ButtonsOptionsRequired","url":"interfaces/ButtonsOptionsRequired.html","classes":"tsd-kind-interface"},{"id":32,"kind":1024,"name":"first","url":"interfaces/ButtonsOptionsRequired.html#first","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptionsRequired"},{"id":33,"kind":1024,"name":"prev","url":"interfaces/ButtonsOptionsRequired.html#prev","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptionsRequired"},{"id":34,"kind":1024,"name":"next","url":"interfaces/ButtonsOptionsRequired.html#next","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptionsRequired"},{"id":35,"kind":1024,"name":"last","url":"interfaces/ButtonsOptionsRequired.html#last","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptionsRequired"},{"id":36,"kind":4194304,"name":"ButtonStyle","url":"modules.html#ButtonStyle","classes":"tsd-kind-type-alias"},{"id":37,"kind":128,"name":"Pagination","url":"classes/Pagination.html","classes":"tsd-kind-class"},{"id":38,"kind":512,"name":"constructor","url":"classes/Pagination.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"Pagination"},{"id":39,"kind":1024,"name":"interaction","url":"classes/Pagination.html#interaction","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":40,"kind":1024,"name":"buttonInfo","url":"classes/Pagination.html#buttonInfo","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":41,"kind":1024,"name":"images","url":"classes/Pagination.html#images","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":42,"kind":1024,"name":"descriptions","url":"classes/Pagination.html#descriptions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":43,"kind":1024,"name":"actionRows","url":"classes/Pagination.html#actionRows","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":44,"kind":1024,"name":"payloads","url":"classes/Pagination.html#payloads","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":45,"kind":1024,"name":"totalEntry","url":"classes/Pagination.html#totalEntry","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":46,"kind":1024,"name":"totalPages","url":"classes/Pagination.html#totalPages","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":47,"kind":1024,"name":"customFooter","url":"classes/Pagination.html#customFooter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":48,"kind":1024,"name":"mainActionRow","url":"classes/Pagination.html#mainActionRow","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":49,"kind":1024,"name":"limit","url":"classes/Pagination.html#limit","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":50,"kind":1024,"name":"idle","url":"classes/Pagination.html#idle","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":51,"kind":1024,"name":"ephemeral","url":"classes/Pagination.html#ephemeral","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":52,"kind":1024,"name":"prevDescription","url":"classes/Pagination.html#prevDescription","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":53,"kind":1024,"name":"postDescription","url":"classes/Pagination.html#postDescription","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":54,"kind":1024,"name":"loop","url":"classes/Pagination.html#loop","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":55,"kind":1024,"name":"attachments","url":"classes/Pagination.html#attachments","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":56,"kind":1024,"name":"currentPage","url":"classes/Pagination.html#currentPage","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":57,"kind":1024,"name":"fieldPaginate","url":"classes/Pagination.html#fieldPaginate","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":58,"kind":1024,"name":"buttons","url":"classes/Pagination.html#buttons","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":59,"kind":65536,"name":"__type","url":"classes/Pagination.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"Pagination"},{"id":60,"kind":1024,"name":"first","url":"classes/Pagination.html#__type.first","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":61,"kind":1024,"name":"prev","url":"classes/Pagination.html#__type.prev","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":62,"kind":1024,"name":"next","url":"classes/Pagination.html#__type.next","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":63,"kind":1024,"name":"last","url":"classes/Pagination.html#__type.last","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":64,"kind":1024,"name":"rawFooter","url":"classes/Pagination.html#rawFooter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":65,"kind":2048,"name":"setOptions","url":"classes/Pagination.html#setOptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":66,"kind":2048,"name":"setImages","url":"classes/Pagination.html#setImages","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":67,"kind":2048,"name":"addImage","url":"classes/Pagination.html#addImage","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":68,"kind":2048,"name":"addImages","url":"classes/Pagination.html#addImages","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":69,"kind":2048,"name":"setDescriptions","url":"classes/Pagination.html#setDescriptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":70,"kind":2048,"name":"addDescription","url":"classes/Pagination.html#addDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":71,"kind":2048,"name":"addDescriptions","url":"classes/Pagination.html#addDescriptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":72,"kind":2048,"name":"paginateFields","url":"classes/Pagination.html#paginateFields","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":73,"kind":2048,"name":"setIdle","url":"classes/Pagination.html#setIdle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":74,"kind":2048,"name":"setEphemeral","url":"classes/Pagination.html#setEphemeral","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":75,"kind":2048,"name":"setLimit","url":"classes/Pagination.html#setLimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":76,"kind":2048,"name":"setPrevDescription","url":"classes/Pagination.html#setPrevDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":77,"kind":2048,"name":"setPostDescription","url":"classes/Pagination.html#setPostDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":78,"kind":2048,"name":"setEmojis","url":"classes/Pagination.html#setEmojis","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":79,"kind":2048,"name":"setStyle","url":"classes/Pagination.html#setStyle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":80,"kind":2048,"name":"setButtonAppearance","url":"classes/Pagination.html#setButtonAppearance","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":81,"kind":2048,"name":"addActionRows","url":"classes/Pagination.html#addActionRows","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":82,"kind":2048,"name":"setAttachments","url":"classes/Pagination.html#setAttachments","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":83,"kind":2048,"name":"addAttachment","url":"classes/Pagination.html#addAttachment","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":84,"kind":2048,"name":"addAttachments","url":"classes/Pagination.html#addAttachments","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":85,"kind":2048,"name":"_readyActionRows","url":"classes/Pagination.html#_readyActionRows","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":86,"kind":2048,"name":"_readyPayloads","url":"classes/Pagination.html#_readyPayloads","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":87,"kind":2048,"name":"goToPage","url":"classes/Pagination.html#goToPage","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":88,"kind":2048,"name":"goFirst","url":"classes/Pagination.html#goFirst","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":89,"kind":2048,"name":"goPrev","url":"classes/Pagination.html#goPrev","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":90,"kind":2048,"name":"goNext","url":"classes/Pagination.html#goNext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":91,"kind":2048,"name":"goLast","url":"classes/Pagination.html#goLast","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":92,"kind":2048,"name":"paginate","url":"classes/Pagination.html#paginate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":93,"kind":2048,"name":"ready","url":"classes/Pagination.html#ready","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":94,"kind":2048,"name":"render","url":"classes/Pagination.html#render","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":95,"kind":2048,"name":"reply","url":"classes/Pagination.html#reply","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":96,"kind":2048,"name":"followUp","url":"classes/Pagination.html#followUp","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":97,"kind":2048,"name":"editReply","url":"classes/Pagination.html#editReply","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":98,"kind":2048,"name":"update","url":"classes/Pagination.html#update","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":99,"kind":2048,"name":"send","url":"classes/Pagination.html#send","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,20.124]],["parent/0",[]],["name/1",[1,36.988]],["parent/1",[0,1.943]],["name/2",[2,36.988]],["parent/2",[0,1.943]],["name/3",[3,36.988]],["parent/3",[0,1.943]],["name/4",[4,36.988]],["parent/4",[0,1.943]],["name/5",[5,36.988]],["parent/5",[0,1.943]],["name/6",[6,36.988]],["parent/6",[0,1.943]],["name/7",[7,36.988]],["parent/7",[0,1.943]],["name/8",[8,36.988]],["parent/8",[0,1.943]],["name/9",[9,36.988]],["parent/9",[0,1.943]],["name/10",[10,36.988]],["parent/10",[0,1.943]],["name/11",[11,36.988]],["parent/11",[0,1.943]],["name/12",[12,36.988]],["parent/12",[0,1.943]],["name/13",[13,29.104]],["parent/13",[]],["name/14",[9,36.988]],["parent/14",[13,2.81]],["name/15",[10,36.988]],["parent/15",[13,2.81]],["name/16",[11,36.988]],["parent/16",[13,2.81]],["name/17",[12,36.988]],["parent/17",[13,2.81]],["name/18",[14,31.11]],["parent/18",[]],["name/19",[15,36.988]],["parent/19",[14,3.004]],["name/20",[16,36.988]],["parent/20",[14,3.004]],["name/21",[17,36.988]],["parent/21",[14,3.004]],["name/22",[18,31.11]],["parent/22",[]],["name/23",[15,36.988]],["parent/23",[18,3.004]],["name/24",[16,36.988]],["parent/24",[18,3.004]],["name/25",[17,36.988]],["parent/25",[18,3.004]],["name/26",[19,29.104]],["parent/26",[]],["name/27",[20,33.624]],["parent/27",[19,2.81]],["name/28",[21,33.624]],["parent/28",[19,2.81]],["name/29",[22,33.624]],["parent/29",[19,2.81]],["name/30",[23,33.624]],["parent/30",[19,2.81]],["name/31",[24,29.104]],["parent/31",[]],["name/32",[20,33.624]],["parent/32",[24,2.81]],["name/33",[21,33.624]],["parent/33",[24,2.81]],["name/34",[22,33.624]],["parent/34",[24,2.81]],["name/35",[23,33.624]],["parent/35",[24,2.81]],["name/36",[7,36.988]],["parent/36",[]],["name/37",[25,5.291]],["parent/37",[]],["name/38",[26,42.097]],["parent/38",[25,0.511]],["name/39",[27,42.097]],["parent/39",[25,0.511]],["name/40",[28,42.097]],["parent/40",[25,0.511]],["name/41",[29,42.097]],["parent/41",[25,0.511]],["name/42",[30,42.097]],["parent/42",[25,0.511]],["name/43",[31,42.097]],["parent/43",[25,0.511]],["name/44",[32,42.097]],["parent/44",[25,0.511]],["name/45",[33,42.097]],["parent/45",[25,0.511]],["name/46",[34,42.097]],["parent/46",[25,0.511]],["name/47",[35,42.097]],["parent/47",[25,0.511]],["name/48",[36,42.097]],["parent/48",[25,0.511]],["name/49",[1,36.988]],["parent/49",[25,0.511]],["name/50",[2,36.988]],["parent/50",[25,0.511]],["name/51",[3,36.988]],["parent/51",[25,0.511]],["name/52",[4,36.988]],["parent/52",[25,0.511]],["name/53",[5,36.988]],["parent/53",[25,0.511]],["name/54",[8,36.988]],["parent/54",[25,0.511]],["name/55",[6,36.988]],["parent/55",[25,0.511]],["name/56",[37,42.097]],["parent/56",[25,0.511]],["name/57",[38,42.097]],["parent/57",[25,0.511]],["name/58",[39,42.097]],["parent/58",[25,0.511]],["name/59",[40,42.097]],["parent/59",[25,0.511]],["name/60",[20,33.624]],["parent/60",[41,3.004]],["name/61",[21,33.624]],["parent/61",[41,3.004]],["name/62",[22,33.624]],["parent/62",[41,3.004]],["name/63",[23,33.624]],["parent/63",[41,3.004]],["name/64",[42,42.097]],["parent/64",[25,0.511]],["name/65",[43,42.097]],["parent/65",[25,0.511]],["name/66",[44,42.097]],["parent/66",[25,0.511]],["name/67",[45,42.097]],["parent/67",[25,0.511]],["name/68",[46,42.097]],["parent/68",[25,0.511]],["name/69",[47,42.097]],["parent/69",[25,0.511]],["name/70",[48,42.097]],["parent/70",[25,0.511]],["name/71",[49,42.097]],["parent/71",[25,0.511]],["name/72",[50,42.097]],["parent/72",[25,0.511]],["name/73",[51,42.097]],["parent/73",[25,0.511]],["name/74",[52,42.097]],["parent/74",[25,0.511]],["name/75",[53,42.097]],["parent/75",[25,0.511]],["name/76",[54,42.097]],["parent/76",[25,0.511]],["name/77",[55,42.097]],["parent/77",[25,0.511]],["name/78",[56,42.097]],["parent/78",[25,0.511]],["name/79",[57,42.097]],["parent/79",[25,0.511]],["name/80",[58,42.097]],["parent/80",[25,0.511]],["name/81",[59,42.097]],["parent/81",[25,0.511]],["name/82",[60,42.097]],["parent/82",[25,0.511]],["name/83",[61,42.097]],["parent/83",[25,0.511]],["name/84",[62,42.097]],["parent/84",[25,0.511]],["name/85",[63,42.097]],["parent/85",[25,0.511]],["name/86",[64,42.097]],["parent/86",[25,0.511]],["name/87",[65,42.097]],["parent/87",[25,0.511]],["name/88",[66,42.097]],["parent/88",[25,0.511]],["name/89",[67,42.097]],["parent/89",[25,0.511]],["name/90",[68,42.097]],["parent/90",[25,0.511]],["name/91",[69,42.097]],["parent/91",[25,0.511]],["name/92",[70,42.097]],["parent/92",[25,0.511]],["name/93",[71,42.097]],["parent/93",[25,0.511]],["name/94",[72,42.097]],["parent/94",[25,0.511]],["name/95",[73,42.097]],["parent/95",[25,0.511]],["name/96",[74,42.097]],["parent/96",[25,0.511]],["name/97",[75,42.097]],["parent/97",[25,0.511]],["name/98",[76,42.097]],["parent/98",[25,0.511]],["name/99",[77,42.097]],["parent/99",[25,0.511]]],"invertedIndex":[["__type",{"_index":40,"name":{"59":{}},"parent":{}}],["_readyactionrows",{"_index":63,"name":{"85":{}},"parent":{}}],["_readypayloads",{"_index":64,"name":{"86":{}},"parent":{}}],["actionrows",{"_index":31,"name":{"43":{}},"parent":{}}],["addactionrows",{"_index":59,"name":{"81":{}},"parent":{}}],["addattachment",{"_index":61,"name":{"83":{}},"parent":{}}],["addattachments",{"_index":62,"name":{"84":{}},"parent":{}}],["adddescription",{"_index":48,"name":{"70":{}},"parent":{}}],["adddescriptions",{"_index":49,"name":{"71":{}},"parent":{}}],["addimage",{"_index":45,"name":{"67":{}},"parent":{}}],["addimages",{"_index":46,"name":{"68":{}},"parent":{}}],["attachments",{"_index":6,"name":{"6":{},"55":{}},"parent":{}}],["buttoninfo",{"_index":28,"name":{"40":{}},"parent":{}}],["buttonoptions",{"_index":14,"name":{"18":{}},"parent":{"19":{},"20":{},"21":{}}}],["buttonoptionsrequired",{"_index":18,"name":{"22":{}},"parent":{"23":{},"24":{},"25":{}}}],["buttons",{"_index":39,"name":{"58":{}},"parent":{}}],["buttonsoptions",{"_index":19,"name":{"26":{}},"parent":{"27":{},"28":{},"29":{},"30":{}}}],["buttonsoptionsrequired",{"_index":24,"name":{"31":{}},"parent":{"32":{},"33":{},"34":{},"35":{}}}],["buttonstyle",{"_index":7,"name":{"7":{},"36":{}},"parent":{}}],["constructor",{"_index":26,"name":{"38":{}},"parent":{}}],["currentpage",{"_index":37,"name":{"56":{}},"parent":{}}],["customfooter",{"_index":35,"name":{"47":{}},"parent":{}}],["descriptions",{"_index":30,"name":{"42":{}},"parent":{}}],["editreply",{"_index":75,"name":{"97":{}},"parent":{}}],["emoji",{"_index":15,"name":{"19":{},"23":{}},"parent":{}}],["emojioptions",{"_index":13,"name":{"13":{}},"parent":{"14":{},"15":{},"16":{},"17":{}}}],["ephemeral",{"_index":3,"name":{"3":{},"51":{}},"parent":{}}],["fieldpaginate",{"_index":38,"name":{"57":{}},"parent":{}}],["first",{"_index":20,"name":{"27":{},"32":{},"60":{}},"parent":{}}],["firstemoji",{"_index":9,"name":{"9":{},"14":{}},"parent":{}}],["followup",{"_index":74,"name":{"96":{}},"parent":{}}],["gofirst",{"_index":66,"name":{"88":{}},"parent":{}}],["golast",{"_index":69,"name":{"91":{}},"parent":{}}],["gonext",{"_index":68,"name":{"90":{}},"parent":{}}],["goprev",{"_index":67,"name":{"89":{}},"parent":{}}],["gotopage",{"_index":65,"name":{"87":{}},"parent":{}}],["idle",{"_index":2,"name":{"2":{},"50":{}},"parent":{}}],["images",{"_index":29,"name":{"41":{}},"parent":{}}],["interaction",{"_index":27,"name":{"39":{}},"parent":{}}],["label",{"_index":16,"name":{"20":{},"24":{}},"parent":{}}],["last",{"_index":23,"name":{"30":{},"35":{},"63":{}},"parent":{}}],["lastemoji",{"_index":12,"name":{"12":{},"17":{}},"parent":{}}],["limit",{"_index":1,"name":{"1":{},"49":{}},"parent":{}}],["loop",{"_index":8,"name":{"8":{},"54":{}},"parent":{}}],["mainactionrow",{"_index":36,"name":{"48":{}},"parent":{}}],["next",{"_index":22,"name":{"29":{},"34":{},"62":{}},"parent":{}}],["nextemoji",{"_index":11,"name":{"11":{},"16":{}},"parent":{}}],["options",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{}}}],["paginate",{"_index":70,"name":{"92":{}},"parent":{}}],["paginatefields",{"_index":50,"name":{"72":{}},"parent":{}}],["pagination",{"_index":25,"name":{"37":{}},"parent":{"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{}}}],["pagination.__type",{"_index":41,"name":{},"parent":{"60":{},"61":{},"62":{},"63":{}}}],["payloads",{"_index":32,"name":{"44":{}},"parent":{}}],["postdescription",{"_index":5,"name":{"5":{},"53":{}},"parent":{}}],["prev",{"_index":21,"name":{"28":{},"33":{},"61":{}},"parent":{}}],["prevdescription",{"_index":4,"name":{"4":{},"52":{}},"parent":{}}],["prevemoji",{"_index":10,"name":{"10":{},"15":{}},"parent":{}}],["rawfooter",{"_index":42,"name":{"64":{}},"parent":{}}],["ready",{"_index":71,"name":{"93":{}},"parent":{}}],["render",{"_index":72,"name":{"94":{}},"parent":{}}],["reply",{"_index":73,"name":{"95":{}},"parent":{}}],["send",{"_index":77,"name":{"99":{}},"parent":{}}],["setattachments",{"_index":60,"name":{"82":{}},"parent":{}}],["setbuttonappearance",{"_index":58,"name":{"80":{}},"parent":{}}],["setdescriptions",{"_index":47,"name":{"69":{}},"parent":{}}],["setemojis",{"_index":56,"name":{"78":{}},"parent":{}}],["setephemeral",{"_index":52,"name":{"74":{}},"parent":{}}],["setidle",{"_index":51,"name":{"73":{}},"parent":{}}],["setimages",{"_index":44,"name":{"66":{}},"parent":{}}],["setlimit",{"_index":53,"name":{"75":{}},"parent":{}}],["setoptions",{"_index":43,"name":{"65":{}},"parent":{}}],["setpostdescription",{"_index":55,"name":{"77":{}},"parent":{}}],["setprevdescription",{"_index":54,"name":{"76":{}},"parent":{}}],["setstyle",{"_index":57,"name":{"79":{}},"parent":{}}],["style",{"_index":17,"name":{"21":{},"25":{}},"parent":{}}],["totalentry",{"_index":33,"name":{"45":{}},"parent":{}}],["totalpages",{"_index":34,"name":{"46":{}},"parent":{}}],["update",{"_index":76,"name":{"98":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = {"kinds":{"128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"Options","url":"interfaces/Options.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"firstLabel","url":"interfaces/Options.html#firstLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":2,"kind":1024,"name":"prevLabel","url":"interfaces/Options.html#prevLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":3,"kind":1024,"name":"nextLabel","url":"interfaces/Options.html#nextLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":4,"kind":1024,"name":"lastLabel","url":"interfaces/Options.html#lastLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":5,"kind":1024,"name":"limit","url":"interfaces/Options.html#limit","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":6,"kind":1024,"name":"idle","url":"interfaces/Options.html#idle","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":7,"kind":1024,"name":"ephemeral","url":"interfaces/Options.html#ephemeral","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":8,"kind":1024,"name":"prevDescription","url":"interfaces/Options.html#prevDescription","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":9,"kind":1024,"name":"postDescription","url":"interfaces/Options.html#postDescription","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":10,"kind":1024,"name":"attachments","url":"interfaces/Options.html#attachments","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":11,"kind":1024,"name":"buttonStyle","url":"interfaces/Options.html#buttonStyle","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":12,"kind":1024,"name":"loop","url":"interfaces/Options.html#loop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Options"},{"id":13,"kind":1024,"name":"firstEmoji","url":"interfaces/Options.html#firstEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":14,"kind":1024,"name":"prevEmoji","url":"interfaces/Options.html#prevEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":15,"kind":1024,"name":"nextEmoji","url":"interfaces/Options.html#nextEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":16,"kind":1024,"name":"lastEmoji","url":"interfaces/Options.html#lastEmoji","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"Options"},{"id":17,"kind":256,"name":"EmojiOptions","url":"interfaces/EmojiOptions.html","classes":"tsd-kind-interface"},{"id":18,"kind":1024,"name":"firstEmoji","url":"interfaces/EmojiOptions.html#firstEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":19,"kind":1024,"name":"prevEmoji","url":"interfaces/EmojiOptions.html#prevEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":20,"kind":1024,"name":"nextEmoji","url":"interfaces/EmojiOptions.html#nextEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":21,"kind":1024,"name":"lastEmoji","url":"interfaces/EmojiOptions.html#lastEmoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EmojiOptions"},{"id":22,"kind":256,"name":"LabelOptions","url":"interfaces/LabelOptions.html","classes":"tsd-kind-interface"},{"id":23,"kind":1024,"name":"firstLabel","url":"interfaces/LabelOptions.html#firstLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LabelOptions"},{"id":24,"kind":1024,"name":"prevLabel","url":"interfaces/LabelOptions.html#prevLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LabelOptions"},{"id":25,"kind":1024,"name":"nextLabel","url":"interfaces/LabelOptions.html#nextLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LabelOptions"},{"id":26,"kind":1024,"name":"lastLabel","url":"interfaces/LabelOptions.html#lastLabel","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LabelOptions"},{"id":27,"kind":256,"name":"ButtonOptions","url":"interfaces/ButtonOptions.html","classes":"tsd-kind-interface"},{"id":28,"kind":1024,"name":"emoji","url":"interfaces/ButtonOptions.html#emoji","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":29,"kind":1024,"name":"label","url":"interfaces/ButtonOptions.html#label","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":30,"kind":1024,"name":"style","url":"interfaces/ButtonOptions.html#style","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonOptions"},{"id":31,"kind":256,"name":"ButtonsOptions","url":"interfaces/ButtonsOptions.html","classes":"tsd-kind-interface"},{"id":32,"kind":1024,"name":"first","url":"interfaces/ButtonsOptions.html#first","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":33,"kind":1024,"name":"prev","url":"interfaces/ButtonsOptions.html#prev","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":34,"kind":1024,"name":"next","url":"interfaces/ButtonsOptions.html#next","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":35,"kind":1024,"name":"last","url":"interfaces/ButtonsOptions.html#last","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonsOptions"},{"id":36,"kind":4194304,"name":"ButtonStyle","url":"modules.html#ButtonStyle","classes":"tsd-kind-type-alias"},{"id":37,"kind":128,"name":"Pagination","url":"classes/Pagination.html","classes":"tsd-kind-class"},{"id":38,"kind":512,"name":"constructor","url":"classes/Pagination.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"Pagination"},{"id":39,"kind":1024,"name":"interaction","url":"classes/Pagination.html#interaction","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":40,"kind":1024,"name":"buttonInfo","url":"classes/Pagination.html#buttonInfo","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":41,"kind":1024,"name":"images","url":"classes/Pagination.html#images","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":42,"kind":1024,"name":"descriptions","url":"classes/Pagination.html#descriptions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":43,"kind":1024,"name":"actionRows","url":"classes/Pagination.html#actionRows","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":44,"kind":1024,"name":"payloads","url":"classes/Pagination.html#payloads","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":45,"kind":1024,"name":"totalEntry","url":"classes/Pagination.html#totalEntry","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":46,"kind":1024,"name":"totalPages","url":"classes/Pagination.html#totalPages","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":47,"kind":1024,"name":"customFooter","url":"classes/Pagination.html#customFooter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":48,"kind":1024,"name":"mainActionRow","url":"classes/Pagination.html#mainActionRow","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":49,"kind":1024,"name":"limit","url":"classes/Pagination.html#limit","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":50,"kind":1024,"name":"idle","url":"classes/Pagination.html#idle","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":51,"kind":1024,"name":"ephemeral","url":"classes/Pagination.html#ephemeral","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":52,"kind":1024,"name":"prevDescription","url":"classes/Pagination.html#prevDescription","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":53,"kind":1024,"name":"postDescription","url":"classes/Pagination.html#postDescription","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":54,"kind":1024,"name":"loop","url":"classes/Pagination.html#loop","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":55,"kind":1024,"name":"embeds","url":"classes/Pagination.html#embeds","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":56,"kind":1024,"name":"attachments","url":"classes/Pagination.html#attachments","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":57,"kind":1024,"name":"currentPage","url":"classes/Pagination.html#currentPage","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":58,"kind":1024,"name":"fieldPaginate","url":"classes/Pagination.html#fieldPaginate","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Pagination"},{"id":59,"kind":1024,"name":"buttons","url":"classes/Pagination.html#buttons","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":60,"kind":65536,"name":"__type","url":"classes/Pagination.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"Pagination"},{"id":61,"kind":1024,"name":"first","url":"classes/Pagination.html#__type.first","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":62,"kind":1024,"name":"prev","url":"classes/Pagination.html#__type.prev","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":63,"kind":1024,"name":"next","url":"classes/Pagination.html#__type.next","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":64,"kind":1024,"name":"last","url":"classes/Pagination.html#__type.last","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"Pagination.__type"},{"id":65,"kind":1024,"name":"rawFooter","url":"classes/Pagination.html#rawFooter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":66,"kind":2048,"name":"setOptions","url":"classes/Pagination.html#setOptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":67,"kind":2048,"name":"setImages","url":"classes/Pagination.html#setImages","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":68,"kind":2048,"name":"addImage","url":"classes/Pagination.html#addImage","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":69,"kind":2048,"name":"addImages","url":"classes/Pagination.html#addImages","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":70,"kind":2048,"name":"setDescriptions","url":"classes/Pagination.html#setDescriptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":71,"kind":2048,"name":"addDescription","url":"classes/Pagination.html#addDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":72,"kind":2048,"name":"addDescriptions","url":"classes/Pagination.html#addDescriptions","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":73,"kind":2048,"name":"setEmbeds","url":"classes/Pagination.html#setEmbeds","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":74,"kind":2048,"name":"addEmbed","url":"classes/Pagination.html#addEmbed","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":75,"kind":2048,"name":"addEmbeds","url":"classes/Pagination.html#addEmbeds","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":76,"kind":2048,"name":"paginateFields","url":"classes/Pagination.html#paginateFields","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":77,"kind":2048,"name":"setIdle","url":"classes/Pagination.html#setIdle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":78,"kind":2048,"name":"setEphemeral","url":"classes/Pagination.html#setEphemeral","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":79,"kind":2048,"name":"setLimit","url":"classes/Pagination.html#setLimit","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":80,"kind":2048,"name":"setPrevDescription","url":"classes/Pagination.html#setPrevDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":81,"kind":2048,"name":"setPostDescription","url":"classes/Pagination.html#setPostDescription","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":82,"kind":2048,"name":"setEmojis","url":"classes/Pagination.html#setEmojis","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":83,"kind":2048,"name":"setLabels","url":"classes/Pagination.html#setLabels","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":84,"kind":2048,"name":"setStyle","url":"classes/Pagination.html#setStyle","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":85,"kind":2048,"name":"setButtonAppearance","url":"classes/Pagination.html#setButtonAppearance","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":86,"kind":2048,"name":"addActionRows","url":"classes/Pagination.html#addActionRows","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":87,"kind":2048,"name":"setAttachments","url":"classes/Pagination.html#setAttachments","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":88,"kind":2048,"name":"addAttachment","url":"classes/Pagination.html#addAttachment","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":89,"kind":2048,"name":"addAttachments","url":"classes/Pagination.html#addAttachments","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":90,"kind":2048,"name":"_readyActionRows","url":"classes/Pagination.html#_readyActionRows","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":91,"kind":2048,"name":"_readyPayloads","url":"classes/Pagination.html#_readyPayloads","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"Pagination"},{"id":92,"kind":2048,"name":"goToPage","url":"classes/Pagination.html#goToPage","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":93,"kind":2048,"name":"goFirst","url":"classes/Pagination.html#goFirst","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":94,"kind":2048,"name":"goPrev","url":"classes/Pagination.html#goPrev","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":95,"kind":2048,"name":"goNext","url":"classes/Pagination.html#goNext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":96,"kind":2048,"name":"goLast","url":"classes/Pagination.html#goLast","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":97,"kind":2048,"name":"paginate","url":"classes/Pagination.html#paginate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":98,"kind":2048,"name":"ready","url":"classes/Pagination.html#ready","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":99,"kind":2048,"name":"render","url":"classes/Pagination.html#render","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":100,"kind":2048,"name":"reply","url":"classes/Pagination.html#reply","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":101,"kind":2048,"name":"followUp","url":"classes/Pagination.html#followUp","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":102,"kind":2048,"name":"editReply","url":"classes/Pagination.html#editReply","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":103,"kind":2048,"name":"update","url":"classes/Pagination.html#update","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"},{"id":104,"kind":2048,"name":"send","url":"classes/Pagination.html#send","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Pagination"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,18.012]],["parent/0",[]],["name/1",[1,37.471]],["parent/1",[0,1.75]],["name/2",[2,37.471]],["parent/2",[0,1.75]],["name/3",[3,37.471]],["parent/3",[0,1.75]],["name/4",[4,37.471]],["parent/4",[0,1.75]],["name/5",[5,37.471]],["parent/5",[0,1.75]],["name/6",[6,37.471]],["parent/6",[0,1.75]],["name/7",[7,37.471]],["parent/7",[0,1.75]],["name/8",[8,37.471]],["parent/8",[0,1.75]],["name/9",[9,37.471]],["parent/9",[0,1.75]],["name/10",[10,37.471]],["parent/10",[0,1.75]],["name/11",[11,37.471]],["parent/11",[0,1.75]],["name/12",[12,37.471]],["parent/12",[0,1.75]],["name/13",[13,37.471]],["parent/13",[0,1.75]],["name/14",[14,37.471]],["parent/14",[0,1.75]],["name/15",[15,37.471]],["parent/15",[0,1.75]],["name/16",[16,37.471]],["parent/16",[0,1.75]],["name/17",[17,29.587]],["parent/17",[]],["name/18",[13,37.471]],["parent/18",[17,2.875]],["name/19",[14,37.471]],["parent/19",[17,2.875]],["name/20",[15,37.471]],["parent/20",[17,2.875]],["name/21",[16,37.471]],["parent/21",[17,2.875]],["name/22",[18,29.587]],["parent/22",[]],["name/23",[1,37.471]],["parent/23",[18,2.875]],["name/24",[2,37.471]],["parent/24",[18,2.875]],["name/25",[3,37.471]],["parent/25",[18,2.875]],["name/26",[4,37.471]],["parent/26",[18,2.875]],["name/27",[19,31.594]],["parent/27",[]],["name/28",[20,42.58]],["parent/28",[19,3.07]],["name/29",[21,42.58]],["parent/29",[19,3.07]],["name/30",[22,42.58]],["parent/30",[19,3.07]],["name/31",[23,29.587]],["parent/31",[]],["name/32",[24,37.471]],["parent/32",[23,2.875]],["name/33",[25,37.471]],["parent/33",[23,2.875]],["name/34",[26,37.471]],["parent/34",[23,2.875]],["name/35",[27,37.471]],["parent/35",[23,2.875]],["name/36",[11,37.471]],["parent/36",[]],["name/37",[28,4.968]],["parent/37",[]],["name/38",[29,42.58]],["parent/38",[28,0.483]],["name/39",[30,42.58]],["parent/39",[28,0.483]],["name/40",[31,42.58]],["parent/40",[28,0.483]],["name/41",[32,42.58]],["parent/41",[28,0.483]],["name/42",[33,42.58]],["parent/42",[28,0.483]],["name/43",[34,42.58]],["parent/43",[28,0.483]],["name/44",[35,42.58]],["parent/44",[28,0.483]],["name/45",[36,42.58]],["parent/45",[28,0.483]],["name/46",[37,42.58]],["parent/46",[28,0.483]],["name/47",[38,42.58]],["parent/47",[28,0.483]],["name/48",[39,42.58]],["parent/48",[28,0.483]],["name/49",[5,37.471]],["parent/49",[28,0.483]],["name/50",[6,37.471]],["parent/50",[28,0.483]],["name/51",[7,37.471]],["parent/51",[28,0.483]],["name/52",[8,37.471]],["parent/52",[28,0.483]],["name/53",[9,37.471]],["parent/53",[28,0.483]],["name/54",[12,37.471]],["parent/54",[28,0.483]],["name/55",[40,42.58]],["parent/55",[28,0.483]],["name/56",[10,37.471]],["parent/56",[28,0.483]],["name/57",[41,42.58]],["parent/57",[28,0.483]],["name/58",[42,42.58]],["parent/58",[28,0.483]],["name/59",[43,42.58]],["parent/59",[28,0.483]],["name/60",[44,42.58]],["parent/60",[28,0.483]],["name/61",[24,37.471]],["parent/61",[45,3.07]],["name/62",[25,37.471]],["parent/62",[45,3.07]],["name/63",[26,37.471]],["parent/63",[45,3.07]],["name/64",[27,37.471]],["parent/64",[45,3.07]],["name/65",[46,42.58]],["parent/65",[28,0.483]],["name/66",[47,42.58]],["parent/66",[28,0.483]],["name/67",[48,42.58]],["parent/67",[28,0.483]],["name/68",[49,42.58]],["parent/68",[28,0.483]],["name/69",[50,42.58]],["parent/69",[28,0.483]],["name/70",[51,42.58]],["parent/70",[28,0.483]],["name/71",[52,42.58]],["parent/71",[28,0.483]],["name/72",[53,42.58]],["parent/72",[28,0.483]],["name/73",[54,42.58]],["parent/73",[28,0.483]],["name/74",[55,42.58]],["parent/74",[28,0.483]],["name/75",[56,42.58]],["parent/75",[28,0.483]],["name/76",[57,42.58]],["parent/76",[28,0.483]],["name/77",[58,42.58]],["parent/77",[28,0.483]],["name/78",[59,42.58]],["parent/78",[28,0.483]],["name/79",[60,42.58]],["parent/79",[28,0.483]],["name/80",[61,42.58]],["parent/80",[28,0.483]],["name/81",[62,42.58]],["parent/81",[28,0.483]],["name/82",[63,42.58]],["parent/82",[28,0.483]],["name/83",[64,42.58]],["parent/83",[28,0.483]],["name/84",[65,42.58]],["parent/84",[28,0.483]],["name/85",[66,42.58]],["parent/85",[28,0.483]],["name/86",[67,42.58]],["parent/86",[28,0.483]],["name/87",[68,42.58]],["parent/87",[28,0.483]],["name/88",[69,42.58]],["parent/88",[28,0.483]],["name/89",[70,42.58]],["parent/89",[28,0.483]],["name/90",[71,42.58]],["parent/90",[28,0.483]],["name/91",[72,42.58]],["parent/91",[28,0.483]],["name/92",[73,42.58]],["parent/92",[28,0.483]],["name/93",[74,42.58]],["parent/93",[28,0.483]],["name/94",[75,42.58]],["parent/94",[28,0.483]],["name/95",[76,42.58]],["parent/95",[28,0.483]],["name/96",[77,42.58]],["parent/96",[28,0.483]],["name/97",[78,42.58]],["parent/97",[28,0.483]],["name/98",[79,42.58]],["parent/98",[28,0.483]],["name/99",[80,42.58]],["parent/99",[28,0.483]],["name/100",[81,42.58]],["parent/100",[28,0.483]],["name/101",[82,42.58]],["parent/101",[28,0.483]],["name/102",[83,42.58]],["parent/102",[28,0.483]],["name/103",[84,42.58]],["parent/103",[28,0.483]],["name/104",[85,42.58]],["parent/104",[28,0.483]]],"invertedIndex":[["__type",{"_index":44,"name":{"60":{}},"parent":{}}],["_readyactionrows",{"_index":71,"name":{"90":{}},"parent":{}}],["_readypayloads",{"_index":72,"name":{"91":{}},"parent":{}}],["actionrows",{"_index":34,"name":{"43":{}},"parent":{}}],["addactionrows",{"_index":67,"name":{"86":{}},"parent":{}}],["addattachment",{"_index":69,"name":{"88":{}},"parent":{}}],["addattachments",{"_index":70,"name":{"89":{}},"parent":{}}],["adddescription",{"_index":52,"name":{"71":{}},"parent":{}}],["adddescriptions",{"_index":53,"name":{"72":{}},"parent":{}}],["addembed",{"_index":55,"name":{"74":{}},"parent":{}}],["addembeds",{"_index":56,"name":{"75":{}},"parent":{}}],["addimage",{"_index":49,"name":{"68":{}},"parent":{}}],["addimages",{"_index":50,"name":{"69":{}},"parent":{}}],["attachments",{"_index":10,"name":{"10":{},"56":{}},"parent":{}}],["buttoninfo",{"_index":31,"name":{"40":{}},"parent":{}}],["buttonoptions",{"_index":19,"name":{"27":{}},"parent":{"28":{},"29":{},"30":{}}}],["buttons",{"_index":43,"name":{"59":{}},"parent":{}}],["buttonsoptions",{"_index":23,"name":{"31":{}},"parent":{"32":{},"33":{},"34":{},"35":{}}}],["buttonstyle",{"_index":11,"name":{"11":{},"36":{}},"parent":{}}],["constructor",{"_index":29,"name":{"38":{}},"parent":{}}],["currentpage",{"_index":41,"name":{"57":{}},"parent":{}}],["customfooter",{"_index":38,"name":{"47":{}},"parent":{}}],["descriptions",{"_index":33,"name":{"42":{}},"parent":{}}],["editreply",{"_index":83,"name":{"102":{}},"parent":{}}],["embeds",{"_index":40,"name":{"55":{}},"parent":{}}],["emoji",{"_index":20,"name":{"28":{}},"parent":{}}],["emojioptions",{"_index":17,"name":{"17":{}},"parent":{"18":{},"19":{},"20":{},"21":{}}}],["ephemeral",{"_index":7,"name":{"7":{},"51":{}},"parent":{}}],["fieldpaginate",{"_index":42,"name":{"58":{}},"parent":{}}],["first",{"_index":24,"name":{"32":{},"61":{}},"parent":{}}],["firstemoji",{"_index":13,"name":{"13":{},"18":{}},"parent":{}}],["firstlabel",{"_index":1,"name":{"1":{},"23":{}},"parent":{}}],["followup",{"_index":82,"name":{"101":{}},"parent":{}}],["gofirst",{"_index":74,"name":{"93":{}},"parent":{}}],["golast",{"_index":77,"name":{"96":{}},"parent":{}}],["gonext",{"_index":76,"name":{"95":{}},"parent":{}}],["goprev",{"_index":75,"name":{"94":{}},"parent":{}}],["gotopage",{"_index":73,"name":{"92":{}},"parent":{}}],["idle",{"_index":6,"name":{"6":{},"50":{}},"parent":{}}],["images",{"_index":32,"name":{"41":{}},"parent":{}}],["interaction",{"_index":30,"name":{"39":{}},"parent":{}}],["label",{"_index":21,"name":{"29":{}},"parent":{}}],["labeloptions",{"_index":18,"name":{"22":{}},"parent":{"23":{},"24":{},"25":{},"26":{}}}],["last",{"_index":27,"name":{"35":{},"64":{}},"parent":{}}],["lastemoji",{"_index":16,"name":{"16":{},"21":{}},"parent":{}}],["lastlabel",{"_index":4,"name":{"4":{},"26":{}},"parent":{}}],["limit",{"_index":5,"name":{"5":{},"49":{}},"parent":{}}],["loop",{"_index":12,"name":{"12":{},"54":{}},"parent":{}}],["mainactionrow",{"_index":39,"name":{"48":{}},"parent":{}}],["next",{"_index":26,"name":{"34":{},"63":{}},"parent":{}}],["nextemoji",{"_index":15,"name":{"15":{},"20":{}},"parent":{}}],["nextlabel",{"_index":3,"name":{"3":{},"25":{}},"parent":{}}],["options",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{}}}],["paginate",{"_index":78,"name":{"97":{}},"parent":{}}],["paginatefields",{"_index":57,"name":{"76":{}},"parent":{}}],["pagination",{"_index":28,"name":{"37":{}},"parent":{"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{}}}],["pagination.__type",{"_index":45,"name":{},"parent":{"61":{},"62":{},"63":{},"64":{}}}],["payloads",{"_index":35,"name":{"44":{}},"parent":{}}],["postdescription",{"_index":9,"name":{"9":{},"53":{}},"parent":{}}],["prev",{"_index":25,"name":{"33":{},"62":{}},"parent":{}}],["prevdescription",{"_index":8,"name":{"8":{},"52":{}},"parent":{}}],["prevemoji",{"_index":14,"name":{"14":{},"19":{}},"parent":{}}],["prevlabel",{"_index":2,"name":{"2":{},"24":{}},"parent":{}}],["rawfooter",{"_index":46,"name":{"65":{}},"parent":{}}],["ready",{"_index":79,"name":{"98":{}},"parent":{}}],["render",{"_index":80,"name":{"99":{}},"parent":{}}],["reply",{"_index":81,"name":{"100":{}},"parent":{}}],["send",{"_index":85,"name":{"104":{}},"parent":{}}],["setattachments",{"_index":68,"name":{"87":{}},"parent":{}}],["setbuttonappearance",{"_index":66,"name":{"85":{}},"parent":{}}],["setdescriptions",{"_index":51,"name":{"70":{}},"parent":{}}],["setembeds",{"_index":54,"name":{"73":{}},"parent":{}}],["setemojis",{"_index":63,"name":{"82":{}},"parent":{}}],["setephemeral",{"_index":59,"name":{"78":{}},"parent":{}}],["setidle",{"_index":58,"name":{"77":{}},"parent":{}}],["setimages",{"_index":48,"name":{"67":{}},"parent":{}}],["setlabels",{"_index":64,"name":{"83":{}},"parent":{}}],["setlimit",{"_index":60,"name":{"79":{}},"parent":{}}],["setoptions",{"_index":47,"name":{"66":{}},"parent":{}}],["setpostdescription",{"_index":62,"name":{"81":{}},"parent":{}}],["setprevdescription",{"_index":61,"name":{"80":{}},"parent":{}}],["setstyle",{"_index":65,"name":{"84":{}},"parent":{}}],["style",{"_index":22,"name":{"30":{}},"parent":{}}],["totalentry",{"_index":36,"name":{"45":{}},"parent":{}}],["totalpages",{"_index":37,"name":{"46":{}},"parent":{}}],["update",{"_index":84,"name":{"103":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/classes/Pagination.html b/docs/classes/Pagination.html index 71ce73e..aa59260 100644 --- a/docs/classes/Pagination.html +++ b/docs/classes/Pagination.html @@ -1,8 +1,11 @@ -Pagination | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pagination

Hierarchy

  • MessageEmbed
    • Pagination

Index

Constructors

constructor

  • new Pagination(interaction: CommandInteraction<CacheType> | ButtonInteraction<CacheType> | Message<boolean>, options?: Options): Pagination

Properties

actionRows

actionRows: MessageActionRow[]

the action rows of the final message

-

attachments

attachments: MessageAttachment[]

author

author: null | MessageEmbedAuthor

Readonly buttonInfo

+

attachments

attachments: MessageAttachment[]
+

send attachment with the message

+
default

[]

+

author

author: null | MessageEmbedAuthor

Readonly buttonInfo

buttonInfo: ButtonsOptions

pagination button infos

readonly
default

{ first: { @@ -26,182 +29,205 @@ style: "SECONDARY", }, }

-

Private buttons

buttons: { first: MessageButton; last: MessageButton; next: MessageButton; prev: MessageButton }
+

Private buttons

buttons: { first: MessageButton; last: MessageButton; next: MessageButton; prev: MessageButton }

pagination buttons

-

Type declaration

  • first: MessageButton
  • last: MessageButton
  • next: MessageButton
  • prev: MessageButton

color

color: null | number

Readonly createdAt

createdAt: null | Date

currentPage

currentPage: number
+

Type declaration

  • first: MessageButton
  • last: MessageButton
  • next: MessageButton
  • prev: MessageButton

color

color: null | number

Readonly createdAt

createdAt: null | Date

currentPage

currentPage: number

current page number

-

Private customFooter

customFooter: boolean
+

Private customFooter

customFooter: boolean

footer is a custom footer

-

description

description: null | string

descriptions

descriptions: string[]
+

description

description: null | string

descriptions

descriptions: string[]

the descriptions to paginate through

-

ephemeral

ephemeral: boolean
+

embeds

embeds: MessageEmbed[]
+

embeds if paginating through embeds

+
default

[]

+

ephemeral

ephemeral: boolean

whether the reply should be ephemeral

default

false

-

fieldPaginate

fieldPaginate: boolean
+

fieldPaginate

fieldPaginate: boolean

paginate through fields

default

false

-

fields

fields: EmbedField[]

footer

footer: null | MessageEmbedFooter

Readonly hexColor

hexColor: null | `#${string}`

idle

idle: number
+

fields

fields: EmbedField[]

footer

footer: null | MessageEmbedFooter

Readonly hexColor

hexColor: null | `#${string}`

idle

idle: number

idle time before closing

default

5 minutes

-

image

image: null | MessageEmbedImage

images

images: string[]
+

image

image: null | MessageEmbedImage

images

images: string[]

the images to paginate through

-

Readonly interaction

interaction: CommandInteraction<CacheType> | ButtonInteraction<CacheType> | Message<boolean>
+

Readonly interaction

interaction: CommandInteraction<CacheType> | MessageComponentInteraction<CacheType> | Message<boolean>

The interaction that the paginator is for.

-
readonly

Readonly length

length: number

limit

limit: number
+
readonly

Readonly length

length: number

limit

limit: number

per page entry limit

default

5

-

loop

loop: boolean
+

loop

loop: boolean

loop through the pages

default

false

-

Private Readonly mainActionRow

mainActionRow: MessageActionRow
+

Private Readonly mainActionRow

mainActionRow: MessageActionRow

main action row

-
readonly

Private Readonly payloads

payloads: InteractionReplyOptions & { fetchReply: true }
+
readonly

Private Readonly payloads

payloads: InteractionReplyOptions & { fetchReply: true }

the payloads of the final message

-
readonly

postDescription

postDescription: string
+
readonly

postDescription

postDescription: string

the description to show after the paginated descriptions

default

""

-

prevDescription

prevDescription: string
+

prevDescription

prevDescription: string

the description to show before the paginated descriptions

default

""

-

provider

provider: null | MessageEmbedProvider

Private rawFooter

rawFooter: string
+

provider

provider: null | MessageEmbedProvider

Private rawFooter

rawFooter: string

raw footer text

-

thumbnail

thumbnail: null | MessageEmbedThumbnail

timestamp

timestamp: null | number

title

title: null | string

totalEntry

totalEntry: number
+

thumbnail

thumbnail: null | MessageEmbedThumbnail

timestamp

timestamp: null | number

title

title: null | string

totalEntry

totalEntry: number

the total number of entries

-

totalPages

totalPages: number

type

type: string
deprecated

url

url: null | string

Readonly video

video: null | MessageEmbedVideo

Methods

Private _readyActionRows

totalPages

totalPages: number

type

type: string
deprecated

url

url: null | string

Readonly video

video: null | MessageEmbedVideo

Methods

Private _readyActionRows

Private _readyPayloads

  • _readyPayloads(): InteractionReplyOptions & { fetchReply: true }

Private _readyPayloads

  • _readyPayloads(): InteractionReplyOptions & { fetchReply: true }
  • ready message payloads

    -

    Returns InteractionReplyOptions & { fetchReply: true }

addActionRows

  • addActionRows(actionRows: MessageActionRow[], position?: "below" | "above"): Pagination
  • +

    Returns InteractionReplyOptions & { fetchReply: true }

addActionRows

  • addActionRows(actionRows: MessageActionRow[], position?: "below" | "above"): Pagination
  • add a custom action row below or above the pagination button action row

    example
    const pagination = new Pagination(interaction)
    .addActionRows([new MessageActionRow()], "above")
    -

    Parameters

    • actionRows: MessageActionRow[]
    • position: "below" | "above" = "below"

    Returns Pagination

addAttachment

  • addAttachment(attachment: MessageAttachment): Pagination

addAttachment

  • addAttachment(attachment: MessageAttachment): Pagination
  • add a attachment to the existing attachments

    example
    const pagination = new Pagination(interaction)
    .setAttachments([new MessageAttachment()])
    .addAttachment(new MessageAttachment())
    -

    Parameters

    • attachment: MessageAttachment

    Returns Pagination

addAttachments

  • addAttachments(attachments: MessageAttachment[]): Pagination

addAttachments

  • addAttachments(attachments: MessageAttachment[]): Pagination
  • add multiple attachments to the existing attachments

    example
    const pagination = new Pagination(interaction)
    .setAttachments([new MessageAttachment()])
    .addAttachments([new MessageAttachment(), new MessageAttachment()])
    -

    Parameters

    • attachments: MessageAttachment[]

    Returns Pagination

addDescription

addDescription

  • add a pagination description

    example
    const pagination = new Pagination(interaction)
    .setDescriptions(["1st description", "2nd description", "3rd description"])
    .addDescription("4st description");
    -

    Parameters

    • description: string

    Returns Pagination

addDescriptions

  • addDescriptions(descriptions: string[]): Pagination

addDescriptions

  • addDescriptions(descriptions: string[]): Pagination
  • add multiple pagination descriptions

    example
    const pagination = new Pagination(interaction)
    .setDescriptions(["1st description", "2nd description", "3rd description"])
    .addDescriptions(["4st description", "5nd description", "6rd description"]);
    -

    Parameters

    • descriptions: string[]

    Returns Pagination

addField

  • addField(name: string, value: string, inline?: boolean): Pagination
  • Parameters

    • name: string
    • value: string
    • Optional inline: boolean

    Returns Pagination

addFields

  • addFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

addImage

addEmbed

  • +

    add a pagination embed

    +
    example
    const pagination = new Pagination(interaction)
    .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()])
    .addEmbed(new MessageEmbed); +
    +

    Parameters

    • embed: MessageEmbed

    Returns Pagination

addEmbeds

  • +

    add multiple pagination embeds

    +
    example
    const pagination = new Pagination(interaction)
    .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()])
    .addEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]) +
    +

    Parameters

    • embeds: MessageEmbed[]

    Returns Pagination

addField

  • addField(name: string, value: string, inline?: boolean): Pagination
  • Parameters

    • name: string
    • value: string
    • Optional inline: boolean

    Returns Pagination

addFields

  • addFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

addImage

  • add a pagination images

    example
    const pagination = new Pagination(interaction)
    .setImages(["1st image", "2nd image", "3rd image"])
    .addImage("4st image");
    -

    Parameters

    • image: string

    Returns Pagination

addImages

addImages

  • add multiple pagination images

    example
    const pagination = new Pagination(interaction)
    .setImages(["1st image", "2nd image", "3rd image"])
    .addImages(["4st image", "5nd image", "6rd image"]);
    -

    Parameters

    • images: string[]

    Returns Pagination

editReply

  • editReply(): Promise<Message<boolean>>

editReply

  • editReply(): Promise<Message<boolean>>
  • edit the original reply with the final message

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.editReply()
    -

    Returns Promise<Message<boolean>>

equals

  • equals(embed: MessageEmbed | APIEmbed): boolean
  • Parameters

    • embed: MessageEmbed | APIEmbed

    Returns boolean

followUp

  • followUp(): Promise<Message<boolean>>

equals

  • equals(embed: MessageEmbed | APIEmbed): boolean
  • Parameters

    • embed: MessageEmbed | APIEmbed

    Returns boolean

followUp

  • followUp(): Promise<Message<boolean>>
  • send reply as a followUp

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.followUp()
    -

    Returns Promise<Message<boolean>>

goFirst

  • goFirst(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>

goFirst

  • goFirst(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • go to the first page

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.goFirst(i)
    -

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goLast

  • goLast(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • +

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goLast

  • goLast(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • go to the last page

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.goLast(i)
    -

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goNext

  • goNext(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • +

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goNext

  • goNext(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • go to the next page

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.goNext(i)
    -

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goPrev

  • goPrev(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • +

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goPrev

  • goPrev(i: ButtonInteraction<CacheType>): ButtonInteraction<CacheType>
  • go to the previous page

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.goPrev(i)
    -

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goToPage

  • +

    Parameters

    • i: ButtonInteraction<CacheType>

    Returns ButtonInteraction<CacheType>

goToPage

  • go to a specific page

    example
    const pagination = new Pagination(interaction)
    .setLimit(1)
    .setDescriptions(["1st page", "2nd page", "3rd page", "4th page", "5th page"])
    ...
    pagination.goToPage(2)
    -

    Parameters

    • pageNumber: number

    Returns Pagination

paginate

paginate

  • make the pagination interactive

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.paginate(message)
    -

    Parameters

    • message: Message<boolean>

    Returns Pagination

paginateFields

paginateFields

  • paginate through fields It will be ignored if you are not paginating through fields

    example
    const pagination = new Pagination(interaction)
    .setFields([{
    name: "Field 1",
    value: "Field 1 value",
    },
    {
    name: "Field 2",
    value: "Field 2 value",
    }])
    .paginateFields(true);
    -

    Parameters

    • paginate: boolean

    Returns Pagination

ready

  • ready(): InteractionReplyOptions & { fetchReply: true }

ready

  • ready(): InteractionReplyOptions & { fetchReply: true }
  • ready the pagination

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.ready()
    -

    Returns InteractionReplyOptions & { fetchReply: true }

render

  • render(): Promise<Message<boolean>>

render

  • render(): Promise<Message<boolean>>
  • send the final message

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.render()
    -

    Returns Promise<Message<boolean>>

reply

  • reply(): Promise<Message<boolean>>

reply

  • reply(): Promise<Message<boolean>>
  • reply the final message

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.reply()
    -

    Returns Promise<Message<boolean>>

send

  • send(): Promise<Message<boolean>>

send

  • send(): Promise<Message<boolean>>
  • send the final message in the interaction channel

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.send()
    -

    Returns Promise<Message<boolean>>

setAttachments

  • setAttachments(attachments: MessageAttachment[]): Pagination

setAttachments

  • setAttachments(attachments: MessageAttachment[]): Pagination
  • send a attachment along with the embed

    example
    const pagination = new Pagination(interaction)
    .setAttachments([new MessageAttachment()])
    -

    Parameters

    • attachments: MessageAttachment[]

    Returns Pagination

setAuthor

  • setAuthor(name: string, iconURL?: string, url?: string): Pagination
  • Parameters

    • name: string
    • Optional iconURL: string
    • Optional url: string

    Returns Pagination

setButtonAppearance

setAuthor

  • setAuthor(name: string, iconURL?: string, url?: string): Pagination
  • Parameters

    • name: string
    • Optional iconURL: string
    • Optional url: string

    Returns Pagination

setButtonAppearance

  • customize button styles

    example
    const pagination = new Pagination(interaction)
    .setButtonAppearance({
    first: {
    label: "First",
    emoji: ":first_emoji:",
    style: "SECONDARY"
    }})
    -

    Parameters

    Returns Pagination

setColor

  • Parameters

    • color: ColorResolvable

    Returns Pagination

setDescription

  • Parameters

    • description: string

    Returns Pagination

setDescriptions

  • setDescriptions(descriptions: string[]): Pagination

setColor

  • Parameters

    • color: ColorResolvable

    Returns Pagination

setDescription

  • Parameters

    • description: string

    Returns Pagination

setDescriptions

  • setDescriptions(descriptions: string[]): Pagination
  • set pagination descriptions

    example
    const pagination = new Pagination(interaction)
    .setDescriptions(["1st description", "2nd description", "3rd description"]);
    -

    Parameters

    • descriptions: string[]

    Returns Pagination

setEmojis

setEmbeds

  • +

    set pagination embeds +Note: if you set this then all other pagination methods and embed methods will be ignored +i.e., descriptions, images, fields, also the embed properties like title, footer and all

    +
    example
    const pagination = new Pagination(interaction)
    .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]); +
    +

    Parameters

    • embeds: MessageEmbed[]

    Returns Pagination

setEmojis

  • +

    change emoji for buttons

    example
    const pagination = new Pagination(interaction)
    .setEmojis({
    firstEmoji: ":first_emoji:",
    prevEmoji: ":prev_emoji:",
    nextEmoji: ":next_emoji:",
    lastEmoji: ":last_emoji:"
    })
    -

    Parameters

    Returns Pagination

setEphemeral

setEphemeral

  • set ephemeral for pagination

    example
    const pagination = new Pagination(interaction)
    .setEphemeral(true)
    -

    Parameters

    • ephemeral: boolean

    Returns Pagination

setFields

  • setFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

setFooter

  • setFooter(text: string, iconURL?: string): Pagination
  • Parameters

    • text: string
    • Optional iconURL: string

    Returns Pagination

setIdle

setFields

  • setFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

setFooter

  • setFooter(text: string, iconURL?: string): Pagination
  • Parameters

    • text: string
    • Optional iconURL: string

    Returns Pagination

setIdle

  • set idle time for pagination

    example
    const pagination = new Pagination(interaction)
    .setIdle(5 * 60 * 1000)
    -

    Parameters

    • idle: number

    Returns Pagination

setImage

  • Parameters

    • url: string

    Returns Pagination

setImages

setImage

  • Parameters

    • url: string

    Returns Pagination

setImages

  • set pagination images

    example
    const pagination = new Pagination(interaction)
    .setImages(["1st image", "2nd image", "3rd image"]);
    -

    Parameters

    • images: string[]

    Returns Pagination

setLimit

setLabels

  • +

    change label for buttons

    +
    example
    const pagination = new Pagination(interaction)
    .setLabels({
    firstLabel: "first",
    prevLabel: "prev",
    nextLabel: "next",
    lastLabel: "last"
    }) +
    +

    Parameters

    Returns Pagination

setLimit

  • set per page limit for pagination

    example
    const pagination = new Pagination(interaction)
    .setLimit(5)
    -

    Parameters

    • limit: number

    Returns Pagination

setOptions

setOptions

  • set pagination options

    example
    const pagination = new Pagination(interaction)
    .setOptions({
    firstEmoji: "⏮",
    prevEmoji: "◀️",
    nextEmoji: "▶️",
    lastEmoji: "⏭",
    limit: 5,
    idle: 5 * 60 * 1000,
    ephemeral: false,
    prevDescription: "",
    postDescription: "",
    attachments: [],
    buttonStyle: "SECONDARY",
    loop: false,
    });
    -

    Parameters

    Returns Pagination

setPostDescription

  • setPostDescription(postDescription: string): Pagination

setPostDescription

  • setPostDescription(postDescription: string): Pagination
  • set a fixed post descriptions which will be shown in all pages after the paginated descriptions It will be ignored if you are not paginating through descriptions

    example
    const pagination = new Pagination(interaction)
    .setPostDescription("role id: 123456789")
    -

    Parameters

    • postDescription: string

    Returns Pagination

setPrevDescription

  • setPrevDescription(prevDescription: string): Pagination

setPrevDescription

  • setPrevDescription(prevDescription: string): Pagination
  • set a fixed prev descriptions which will be shown in all pages before the paginated descriptions It will be ignored if you are not paginating through descriptions

    example
    const pagination = new Pagination(interaction)
    .setPrevDescription("role info")
    -

    Parameters

    • prevDescription: string

    Returns Pagination

setStyle

  • example
    const pagination = new Pagination(interaction)
    .setStyle("SECONDARY") +

    Parameters

    • prevDescription: string

    Returns Pagination

setStyle

setThumbnail

  • Parameters

    • url: string

    Returns Pagination

setTimestamp

  • setTimestamp(timestamp?: null | number | Date): Pagination
  • Parameters

    • Optional timestamp: null | number | Date

    Returns Pagination

setTitle

  • Parameters

    • title: string

    Returns Pagination

setURL

  • Parameters

    • url: string

    Returns Pagination

spliceFields

  • spliceFields(index: number, deleteCount: number, ...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • index: number
    • deleteCount: number
    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

toJSON

  • toJSON(): APIEmbed
  • Returns APIEmbed

update

  • update(): Promise<Message<boolean>>

setThumbnail

  • Parameters

    • url: string

    Returns Pagination

setTimestamp

  • setTimestamp(timestamp?: null | number | Date): Pagination
  • Parameters

    • Optional timestamp: null | number | Date

    Returns Pagination

setTitle

  • Parameters

    • title: string

    Returns Pagination

setURL

  • Parameters

    • url: string

    Returns Pagination

spliceFields

  • spliceFields(index: number, deleteCount: number, ...fields: EmbedFieldData[] | EmbedFieldData[][]): Pagination
  • Parameters

    • index: number
    • deleteCount: number
    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Pagination

toJSON

  • toJSON(): APIEmbed
  • Returns APIEmbed

update

  • update(): Promise<Message<boolean>>
  • update to button interaction

    example
    const pagination = new Pagination(interaction)
    ...
    pagination.update()
    -

    Returns Promise<Message<boolean>>

Static normalizeField

  • normalizeField(name: string, value: string, inline?: boolean): Required<EmbedFieldData>
  • Parameters

    • name: string
    • value: string
    • Optional inline: boolean

    Returns Required<EmbedFieldData>

Static normalizeFields

  • normalizeFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Required<EmbedFieldData>[]
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Required<EmbedFieldData>[]

Generated using TypeDoc

\ No newline at end of file +

Returns Promise<Message<boolean>>

Static normalizeField

  • normalizeField(name: string, value: string, inline?: boolean): Required<EmbedFieldData>
  • Parameters

    • name: string
    • value: string
    • Optional inline: boolean

    Returns Required<EmbedFieldData>

Static normalizeFields

  • normalizeFields(...fields: EmbedFieldData[] | EmbedFieldData[][]): Required<EmbedFieldData>[]
  • Parameters

    • Rest ...fields: EmbedFieldData[] | EmbedFieldData[][]

    Returns Required<EmbedFieldData>[]

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 7dbef86..31797e9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -51,7 +51,15 @@

Paginate through Fields

Paginate through all

You can paginate through descriptions, images, fields all at the same time

-
const { Pagination } = require("pagination.djs");
const pagination = new Pagination(interaction);

const descriptions = [
"This is a description.",
"This is a second description.",
];
pagination.setDescriptions(descriptions);
const images = ["1st image link", "2nd image link"];
pagination.setImages(images);
pagination.setFields([
{
name: "First",
value: "First",
},
{
name: "Second",
value: "Second",
},
{
name: "Third",
value: "Third",
},
]);
pagination.paginateFields(true);
pagination.render(); +
const { Pagination } = require("pagination.djs");

const descriptions = [
"This is a description.",
"This is a second description.",
];
const images = ["1st image link", "2nd image link"];
const pagination = new Pagination(interaction)
.setDescriptions(descriptions)
.setImages(images)
.setFields([
{
name: "First",
value: "First",
},
{
name: "Second",
value: "Second",
},
{
name: "Third",
value: "Third",
},
])
.paginateFields(true);
pagination.render(); +
+ + +

Paginate through multiple embeds

+
+

Note: If you use this then all the embed methods (setTitle(), ...) and other pagination methods (setImages(), ...) will be ignored

+

Paginate through multiple embeds

+
const { Pagination } = require("pagination.djs");
const { MessageEmbed } = require("discord.js");
const pagination = new Pagination(interaction);

const embeds = [];

for (let i = 0; i <= 5; i++) {
const newEmbed = new MessageEmbed().setTitle(`Embed ${i + 1}`);
embeds.push(newEmbed);
}

pagination.setEmbeds(embeds);
pagination.render();
@@ -65,7 +73,7 @@

Customize embed

Customization

You can customize the behavior of the pagination by passing the following options:

-
const { Pagination } = require("pagination.djs");
const pagination = new Pagination(interaction, {
firstEmoji: "⏮", // First button emoji
prevEmoji: "◀️", // Previous button emoji
nextEmoji: "▶️", // Next button emoji
lastEmoji: "⏭", // Last button emoji
limit: 5, // number of entries per page
idle: 30000, // idle time in ms before the pagination closes
ephemeral: false, // ephemeral reply
prevDescription: "",
postDescription: "",
attachments: [new MessageAttachment()], // attachments you want to pass with the embed
buttonStyle: "SECONDARY",
loop: false, // loop through the pages
}); +
const { Pagination } = require("pagination.djs");
const pagination = new Pagination(interaction, {
firstEmoji: "⏮", // First button emoji
prevEmoji: "◀️", // Previous button emoji
nextEmoji: "▶️", // Next button emoji
lastEmoji: "⏭", // Last button emoji
limit: 5, // number of entries per page
idle: 30000, // idle time in ms before the pagination closes
ephemeral: false, // ephemeral reply
prevDescription: "",
postDescription: "",
attachments: [new MessageAttachment()], // attachments you want to pass with the embed
buttonStyle: "SECONDARY",
loop: false, // loop through the pages
});

Note: All the options are optional

You can set the options with setOptions() method also

@@ -122,15 +130,15 @@

Send attachments

Other send options

-

By default render() will reply to the interaction but you can change it. Available in build methods are:

+

By default render() will reply to the interaction but you can change it. Available in build methods are:

    -
  • reply() reply to the interaction
  • -
  • followUp() send followUp reply to the interaction
  • -
  • editReply() edit interaction reply
  • -
  • send() send message in the interaction channel
  • +
  • reply() reply to the interaction
  • +
  • followUp() send followUp reply to the interaction
  • +
  • editReply() edit interaction reply
  • +
  • send() send message in the interaction channel

If you want to send it by yourself or send in a different channel then you can follow these steps:

-
const payloads = pagination.ready();
const message = await interaction.reply(payloads);
pagination.paginate(message); +
const payloads = pagination.ready();
const message = await interaction.reply(payloads);
pagination.paginate(message);
@@ -147,6 +155,12 @@

Preview

+
+

Migration guide

+
+

If you are migrating from other lib where you use to set multiple embeds at the same time, +then we also have a similar method called Pagination#setEmbeds, where you can pass your embeds and use render() method and pagination will take care of the rest.

+

License

@@ -156,4 +170,4 @@

License

Author

@imranbarbhuiya

-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ButtonOptions.html b/docs/interfaces/ButtonOptions.html index 6b13bb4..df86e17 100644 --- a/docs/interfaces/ButtonOptions.html +++ b/docs/interfaces/ButtonOptions.html @@ -1,9 +1,9 @@ -ButtonOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonOptions

Hierarchy

  • ButtonOptions

Index

Properties

Properties

Optional emoji

emoji?: EmojiIdentifierResolvable
+ButtonOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonOptions

Hierarchy

  • ButtonOptions

Index

Properties

Properties

emoji

emoji: EmojiIdentifierResolvable

The emoji to use for the button.

-

Optional label

label?: string
+

label

label: string

The text to show on the button.

default

""

-

Optional style

style?: ButtonStyle
+

style

The style of the button.

default

"SECONDARY"

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ButtonOptionsRequired.html b/docs/interfaces/ButtonOptionsRequired.html deleted file mode 100644 index 94588c3..0000000 --- a/docs/interfaces/ButtonOptionsRequired.html +++ /dev/null @@ -1,9 +0,0 @@ -ButtonOptionsRequired | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonOptionsRequired

Hierarchy

  • ButtonOptionsRequired

Index

Properties

Properties

emoji

emoji: EmojiIdentifierResolvable
-

The emoji to use for the button.

-

label

label: string
-

The text to show on the button.

-
default

""

-

style

-

The style of the button.

-
default

"SECONDARY"

-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ButtonsOptions.html b/docs/interfaces/ButtonsOptions.html index 7c7af56..665f869 100644 --- a/docs/interfaces/ButtonsOptions.html +++ b/docs/interfaces/ButtonsOptions.html @@ -1,9 +1,9 @@ -ButtonsOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonsOptions

Hierarchy

  • ButtonsOptions

Index

Properties

Optional first

+ButtonsOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonsOptions

Hierarchy

  • ButtonsOptions

Index

Properties

first

The first button of the pagination row

-

Optional last

+

last

The last button of the pagination row

-

Optional next

+

next

The next button of the pagination row

-

Optional prev

+

prev

The previous button of the pagination row

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ButtonsOptionsRequired.html b/docs/interfaces/ButtonsOptionsRequired.html deleted file mode 100644 index 4de019b..0000000 --- a/docs/interfaces/ButtonsOptionsRequired.html +++ /dev/null @@ -1,9 +0,0 @@ -ButtonsOptionsRequired | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ButtonsOptionsRequired

Hierarchy

  • ButtonsOptionsRequired

Index

Properties

first

-

The first button of the pagination row

-

last

-

The last button of the pagination row

-

next

-

The next button of the pagination row

-

prev

-

The previous button of the pagination row

-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/EmojiOptions.html b/docs/interfaces/EmojiOptions.html index e2f3a46..00432b7 100644 --- a/docs/interfaces/EmojiOptions.html +++ b/docs/interfaces/EmojiOptions.html @@ -1,13 +1,13 @@ -EmojiOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EmojiOptions

Hierarchy

Index

Properties

Optional firstEmoji

firstEmoji?: EmojiIdentifierResolvable
+EmojiOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EmojiOptions

Hierarchy

Index

Properties

firstEmoji

firstEmoji: EmojiIdentifierResolvable

The emoji to use for the first button.

default

"⏮"

-

Optional lastEmoji

lastEmoji?: EmojiIdentifierResolvable
+

lastEmoji

lastEmoji: EmojiIdentifierResolvable

The emoji to use for the last button.

default

"⏭"

-

Optional nextEmoji

nextEmoji?: EmojiIdentifierResolvable
+

nextEmoji

nextEmoji: EmojiIdentifierResolvable

The emoji to use for the next button.

default

"▶️"

-

Optional prevEmoji

prevEmoji?: EmojiIdentifierResolvable
+

prevEmoji

prevEmoji: EmojiIdentifierResolvable

The emoji to use for the previous button.

default

"◀️"

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/LabelOptions.html b/docs/interfaces/LabelOptions.html new file mode 100644 index 0000000..4091119 --- /dev/null +++ b/docs/interfaces/LabelOptions.html @@ -0,0 +1,13 @@ +LabelOptions | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LabelOptions

Hierarchy

  • LabelOptions

Index

Properties

firstLabel

firstLabel: string
+

The label to use for the first button.

+
default

""

+

lastLabel

lastLabel: string
+

The label to use for the last button.

+
default

""

+

nextLabel

nextLabel: string
+

The label to use for the next button.

+
default

""

+

prevLabel

prevLabel: string
+

The label to use for the previous button.

+
default

""

+

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Options.html b/docs/interfaces/Options.html index 5bd8580..03c7fd3 100644 --- a/docs/interfaces/Options.html +++ b/docs/interfaces/Options.html @@ -1,37 +1,49 @@ -Options | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options

Hierarchy

Index

Properties

Optional attachments

attachments?: MessageAttachment[]
+Options | pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Options

Hierarchy

Index

Properties

attachments

attachments: MessageAttachment[]

The attachments to show with the paginated messages.

default

[]

-

Optional buttonStyle

buttonStyle?: ButtonStyle
+

buttonStyle

buttonStyle: ButtonStyle

The style of the paginator buttons.

default

"SECONDARY"

-

Optional ephemeral

ephemeral?: boolean
+

ephemeral

ephemeral: boolean

Whether the reply should be ephemeral.

default

false

-

Optional firstEmoji

firstEmoji?: EmojiIdentifierResolvable
+

firstEmoji

firstEmoji: EmojiIdentifierResolvable

The emoji to use for the first button.

default

"⏮"

-

Optional idle

idle?: number
+

firstLabel

firstLabel: string
+

The label for the first page button.

+
default

""

+

idle

idle: number

The number of seconds before the paginator will close after inactivity.

default

5 minutes

-

Optional lastEmoji

lastEmoji?: EmojiIdentifierResolvable
+

lastEmoji

lastEmoji: EmojiIdentifierResolvable

The emoji to use for the last button.

default

"⏭"

-

Optional limit

limit?: number
+

lastLabel

lastLabel: string
+

The label for the last page button.

+
default

""

+

limit

limit: number

The number of entries to show per page.

default

5

-

Optional loop

loop?: boolean
+

loop

loop: boolean

loop through the pages.

default

false

-

Optional nextEmoji

nextEmoji?: EmojiIdentifierResolvable
+

nextEmoji

nextEmoji: EmojiIdentifierResolvable

The emoji to use for the next button.

default

"▶️"

-

Optional postDescription

postDescription?: string
+

nextLabel

nextLabel: string
+

The label for the next page button.

+
default

""

+

postDescription

postDescription: string

The description to show after the paginated descriptions.

default

""

-

Optional prevDescription

prevDescription?: string
+

prevDescription

prevDescription: string

The description to show before the paginated descriptions.

default

""

-

Optional prevEmoji

prevEmoji?: EmojiIdentifierResolvable
+

prevEmoji

prevEmoji: EmojiIdentifierResolvable

The emoji to use for the previous button.

default

"◀️"

-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

prevLabel

prevLabel: string
+

The label for the previous page button.

+
default

""

+

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index e5278bd..ddf8076 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,3 +1,3 @@ -pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

pagination.djs

Index

Type aliases

ButtonStyle

ButtonStyle: "PRIMARY" | "SECONDARY" | "DANGER" | "SUCCESS"
+pagination.djs
Options
All
  • Public
  • Public/Protected
  • All
Menu

pagination.djs

Index

Type aliases

ButtonStyle

ButtonStyle: "PRIMARY" | "SECONDARY" | "DANGER" | "SUCCESS"

The style of the paginator buttons.

-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/readme.md b/readme.md index bb40914..5abc7e6 100644 --- a/readme.md +++ b/readme.md @@ -81,30 +81,52 @@ You can paginate through descriptions, images, fields all at the same time ```js const { Pagination } = require("pagination.djs"); -const pagination = new Pagination(interaction); const descriptions = [ "This is a description.", "This is a second description.", ]; -pagination.setDescriptions(descriptions); const images = ["1st image link", "2nd image link"]; -pagination.setImages(images); -pagination.setFields([ - { - name: "First", - value: "First", - }, - { - name: "Second", - value: "Second", - }, - { - name: "Third", - value: "Third", - }, -]); -pagination.paginateFields(true); +const pagination = new Pagination(interaction) + .setDescriptions(descriptions) + .setImages(images) + .setFields([ + { + name: "First", + value: "First", + }, + { + name: "Second", + value: "Second", + }, + { + name: "Third", + value: "Third", + }, + ]) + .paginateFields(true); +pagination.render(); +``` + +#### Paginate through multiple embeds + +Note: If you use this then all the embed methods (`setTitle()`, ...) and other pagination methods (`setImages()`, ...) will be ignored + +Paginate through multiple embeds + +```js +const { Pagination } = require("pagination.djs"); +const { MessageEmbed } = require("discord.js"); +const pagination = new Pagination(interaction); + +const embeds = []; + +for (let i = 0; i <= 5; i++) { + const newEmbed = new MessageEmbed().setTitle(`Embed ${i + 1}`); + embeds.push(newEmbed); +} + +pagination.setEmbeds(embeds); pagination.render(); ``` @@ -260,12 +282,12 @@ pagination.setAttachments([new MessageAttachment()]); ### Other send options -By default `render()` will reply to the interaction but you can change it. Available in build methods are: +By default [render()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#render) will reply to the interaction but you can change it. Available in build methods are: -- `reply()` reply to the interaction -- `followUp()` send followUp reply to the interaction -- `editReply()` edit interaction reply -- `send()` send message in the interaction channel +- [reply()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#reply) reply to the interaction +- [followUp()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#followUp) send followUp reply to the interaction +- [editReply()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#editReply) edit interaction reply +- [send()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#send) send message in the interaction channel If you want to send it by yourself or send in a different channel then you can follow these steps: @@ -287,6 +309,11 @@ pagination.paginate(message); image3

+## Migration guide + +If you are migrating from other lib where you use to set multiple embeds at the same time, +then we also have a similar method called [Pagination#setEmbeds](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#setEmbeds), where you can pass your embeds and use [render()](https://imranbarbhuiya.github.io/pagination.djs/classes/Pagination.html#render) method and pagination will take care of the rest. + ## License MIT diff --git a/src/index.ts b/src/index.ts index 72a03ff..ee1e2ab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,9 +14,13 @@ import { const defaultOptions = { firstEmoji: "⏪", - prevEmoji: "▶️", - nextEmoji: "◀️", + prevEmoji: "◀️", + nextEmoji: "▶️", lastEmoji: "⏭", + firstLabel: "", + prevLabel: "", + nextLabel: "", + lastLabel: "", limit: 5, idle: 5 * 60 * 1000, ephemeral: false, @@ -28,46 +32,66 @@ const defaultOptions = { } as Options; export interface Options extends EmojiOptions { + /** + * The label for the first page button. + * @default "" + */ + firstLabel: string; + /** + * The label for the previous page button. + * @default "" + */ + prevLabel: string; + /** + * The label for the next page button. + * @default "" + */ + nextLabel: string; + /** + * The label for the last page button. + * @default "" + */ + lastLabel: string; /** * The number of entries to show per page. * @default 5 */ - limit?: number; + limit: number; /** * The number of seconds before the paginator will close after inactivity. * @default 5 minutes */ - idle?: number; + idle: number; /** * Whether the reply should be ephemeral. * @default false */ - ephemeral?: boolean; + ephemeral: boolean; /** * The description to show before the paginated descriptions. * @default "" */ - prevDescription?: string; + prevDescription: string; /** * The description to show after the paginated descriptions. * @default "" */ - postDescription?: string; + postDescription: string; /** * The attachments to show with the paginated messages. * @default [] */ - attachments?: MessageAttachment[]; + attachments: MessageAttachment[]; /** * The style of the paginator buttons. * @default "SECONDARY" */ - buttonStyle?: ButtonStyle; + buttonStyle: ButtonStyle; /** * loop through the pages. * @default false */ - loop?: boolean; + loop: boolean; } export interface EmojiOptions { @@ -75,42 +99,48 @@ export interface EmojiOptions { * The emoji to use for the first button. * @default "⏮" */ - firstEmoji?: EmojiIdentifierResolvable; + firstEmoji: EmojiIdentifierResolvable; /** * The emoji to use for the previous button. * @default "◀️" */ - prevEmoji?: EmojiIdentifierResolvable; + prevEmoji: EmojiIdentifierResolvable; /** * The emoji to use for the next button. * @default "▶️" */ - nextEmoji?: EmojiIdentifierResolvable; + nextEmoji: EmojiIdentifierResolvable; /** * The emoji to use for the last button. * @default "⏭" */ - lastEmoji?: EmojiIdentifierResolvable; + lastEmoji: EmojiIdentifierResolvable; } -export interface ButtonOptions { +export interface LabelOptions { /** - * The emoji to use for the button. + * The label to use for the first button. + * @default "" */ - emoji?: EmojiIdentifierResolvable; + firstLabel: string; /** - * The text to show on the button. + * The label to use for the previous button. * @default "" */ - label?: string; + prevLabel: string; /** - * The style of the button. - * @default "SECONDARY" + * The label to use for the next button. + * @default "" + */ + nextLabel: string; + /** + * The label to use for the last button. + * @default "" */ - style?: ButtonStyle; + lastLabel: string; } -export interface ButtonOptionsRequired { +export interface ButtonOptions { /** * The emoji to use for the button. */ @@ -131,38 +161,19 @@ export interface ButtonsOptions { /** * The first button of the pagination row */ - first?: ButtonOptions; - /** - * The previous button of the pagination row - */ - prev?: ButtonOptions; - /** - * The next button of the pagination row - */ - next?: ButtonOptions; - /** - * The last button of the pagination row - */ - last?: ButtonOptions; -} - -export interface ButtonsOptionsRequired { - /** - * The first button of the pagination row - */ - first: ButtonOptionsRequired; + first: ButtonOptions; /** * The previous button of the pagination row */ - prev: ButtonOptionsRequired; + prev: ButtonOptions; /** * The next button of the pagination row */ - next: ButtonOptionsRequired; + next: ButtonOptions; /** * The last button of the pagination row */ - last: ButtonOptionsRequired; + last: ButtonOptions; } /** @@ -174,7 +185,10 @@ class Pagination extends MessageEmbed { * The interaction that the paginator is for. * @readonly */ - public readonly interaction: CommandInteraction | ButtonInteraction | Message; + public readonly interaction: + | CommandInteraction + | MessageComponentInteraction + | Message; /** * pagination button infos * @readonly @@ -201,7 +215,7 @@ class Pagination extends MessageEmbed { * }, * } */ - public readonly buttonInfo: ButtonsOptionsRequired; + public readonly buttonInfo: ButtonsOptions; /** * the images to paginate through */ @@ -270,6 +284,15 @@ class Pagination extends MessageEmbed { * @default false */ public loop!: boolean; + /** + * embeds if paginating through embeds + * @default [] + */ + public embeds: MessageEmbed[]; + /** + * send attachment with the message + * @default [] + */ public attachments!: MessageAttachment[]; /** * current page number @@ -321,43 +344,44 @@ class Pagination extends MessageEmbed { */ constructor( - interaction: CommandInteraction | ButtonInteraction | Message, - options: Options = {} + interaction: CommandInteraction | MessageComponentInteraction | Message, + options: Partial = {} ) { super(); - options = Object.assign({}, defaultOptions, options); + const mergedOptions = Object.assign({}, defaultOptions, options); this.interaction = interaction; this.buttonInfo = { first: { - emoji: options.firstEmoji || "⏮", - label: "", - style: "SECONDARY", + emoji: mergedOptions.firstEmoji, + label: mergedOptions.firstLabel, + style: mergedOptions.buttonStyle, }, prev: { - emoji: options.prevEmoji || "◀️", - label: "", - style: "SECONDARY", + emoji: mergedOptions.prevEmoji, + label: mergedOptions.prevLabel, + style: mergedOptions.buttonStyle, }, next: { - emoji: options.nextEmoji || "▶️", - label: "", - style: "SECONDARY", + emoji: mergedOptions.nextEmoji, + label: mergedOptions.nextLabel, + style: mergedOptions.buttonStyle, }, last: { - emoji: options.lastEmoji || "⏭", - label: "", - style: "SECONDARY", + emoji: mergedOptions.lastEmoji, + label: mergedOptions.lastLabel, + style: mergedOptions.buttonStyle, }, }; this.images = []; this.descriptions = []; + this.embeds = []; this.actionRows = []; this.payloads = { fetchReply: true }; this.totalEntry = 0; this.totalPages = 0; this.customFooter = true; this.mainActionRow = new MessageActionRow(); - this.setOptions(options); + this.setOptions(mergedOptions); } /** * @@ -384,14 +408,20 @@ class Pagination extends MessageEmbed { * ``` * */ - setOptions(options: Options): this { + setOptions(options: Partial): this { this.setEmojis({ firstEmoji: options.firstEmoji, prevEmoji: options.prevEmoji, nextEmoji: options.nextEmoji, lastEmoji: options.lastEmoji, }); - this.setStyle(options.buttonStyle); + if (options.buttonStyle) this.setStyle(options.buttonStyle); + this.setLabels({ + firstLabel: options.firstLabel, + prevLabel: options.prevLabel, + nextLabel: options.nextLabel, + lastLabel: options.lastLabel, + }); this.limit = options.limit || this.limit; this.idle = options.idle || this.idle; this.ephemeral = options.ephemeral || this.ephemeral; @@ -508,6 +538,59 @@ class Pagination extends MessageEmbed { this.descriptions.push(...descriptions); return this; } + /** + * + * set pagination embeds + * Note: if you set this then all other pagination methods and embed methods will be ignored + * i.e., descriptions, images, fields, also the embed properties like title, footer and all + * @param embeds + * @returns + * @example + * ```javascript + * const pagination = new Pagination(interaction) + * .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]); + * ``` + * + */ + setEmbeds(embeds: MessageEmbed[]): this { + this.embeds = embeds; + this.limit = 1; + return this; + } + /** + * + * add a pagination embed + * @param embed + * @returns + * @example + * ```javascript + * const pagination = new Pagination(interaction) + * .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]) + * .addEmbed(new MessageEmbed); + * ``` + * + */ + addEmbed(embed: MessageEmbed): this { + this.embeds.push(embed); + return this; + } + /** + * + * add multiple pagination embeds + * @param embeds + * @returns + * @example + * ```javascript + * const pagination = new Pagination(interaction) + * .setEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]) + * .addEmbeds([new MessageEmbed(), new MessageEmbed(), new MessageEmbed()]) + * ``` + * + */ + addEmbeds(embeds: MessageEmbed[]): this { + this.embeds.push(...embeds); + return this; + } /** * * paginate through fields @@ -617,7 +700,7 @@ class Pagination extends MessageEmbed { } /** * - * change default emoji for buttons + * change emoji for buttons * @param emojiOptions * @returns * @example @@ -632,7 +715,7 @@ class Pagination extends MessageEmbed { * ``` * */ - setEmojis(emojiOptions: EmojiOptions): this { + setEmojis(emojiOptions: Partial): this { this.buttonInfo.first.emoji = emojiOptions.firstEmoji || this.buttonInfo.first.emoji; this.buttonInfo.prev.emoji = @@ -645,6 +728,35 @@ class Pagination extends MessageEmbed { } /** * + * change label for buttons + * @param labelOptions + * @returns + * @example + * ```javascript + * const pagination = new Pagination(interaction) + * .setLabels({ + * firstLabel: "first", + * prevLabel: "prev", + * nextLabel: "next", + * lastLabel: "last" + * }) + * ``` + * + */ + setLabels(labelOptions: Partial): this { + this.buttonInfo.first.label = + labelOptions.firstLabel || this.buttonInfo.first.label; + this.buttonInfo.prev.label = + labelOptions.prevLabel || this.buttonInfo.prev.label; + this.buttonInfo.next.label = + labelOptions.nextLabel || this.buttonInfo.next.label; + this.buttonInfo.last.label = + labelOptions.lastLabel || this.buttonInfo.last.label; + return this; + } + /** + * + * set button style * @param style * @returns * @example @@ -654,11 +766,11 @@ class Pagination extends MessageEmbed { * ``` * */ - setStyle(style?: ButtonStyle): this { - this.buttonInfo.first.style = style || this.buttonInfo.first.style; - this.buttonInfo.prev.style = style || this.buttonInfo.prev.style; - this.buttonInfo.next.style = style || this.buttonInfo.next.style; - this.buttonInfo.last.style = style || this.buttonInfo.last.style; + setStyle(style: ButtonStyle): this { + this.buttonInfo.first.style = style; + this.buttonInfo.prev.style = style; + this.buttonInfo.next.style = style; + this.buttonInfo.last.style = style; return this; } @@ -825,7 +937,7 @@ class Pagination extends MessageEmbed { this._readyActionRows(); this.payloads.components = this.actionRows; this.payloads.files = this.attachments; - this.payloads.embeds = [this]; + this.payloads.embeds = [this.embeds.length ? this.embeds[0] : this]; return this.payloads; } /** @@ -846,6 +958,10 @@ class Pagination extends MessageEmbed { if (pageNumber < 1) pageNumber = this.totalPages; if (pageNumber > this.totalPages) pageNumber = 1; this.currentPage = pageNumber; + if (this.embeds.length) { + this.payloads.embeds = [this.embeds[this.currentPage - 1]]; + return this; + } if (!this.footer) { this.customFooter = false; this.rawFooter = "Pages: {pageNumber}/{totalPages}"; @@ -1065,11 +1181,13 @@ class Pagination extends MessageEmbed { * */ ready(): InteractionReplyOptions & { fetchReply: true } { - this.totalEntry = Math.max( - this.descriptions.length, - this.images.length, - this.fieldPaginate ? this.fields.length : 0 - ); + this.totalEntry = + this.embeds.length || + Math.max( + this.descriptions.length, + this.images.length, + this.fieldPaginate ? this.fields.length : 0 + ); this.totalPages = Math.ceil(this.totalEntry / this.limit); const payloads = this._readyPayloads(); this.goToPage(this.currentPage); @@ -1125,7 +1243,7 @@ class Pagination extends MessageEmbed { async followUp(): Promise { const payloads = this.ready(); const message = await ( - this.interaction as CommandInteraction | ButtonInteraction + this.interaction as CommandInteraction | MessageComponentInteraction ).followUp(payloads); this.paginate(message as Message); return message as Message; @@ -1145,7 +1263,7 @@ class Pagination extends MessageEmbed { async editReply(): Promise { const payloads = this.ready(); const message = await ( - this.interaction as CommandInteraction | ButtonInteraction + this.interaction as CommandInteraction | MessageComponentInteraction ).editReply(payloads); this.paginate(message as Message); return message as Message; @@ -1164,9 +1282,9 @@ class Pagination extends MessageEmbed { */ async update(): Promise { const payloads = this.ready(); - const message = await (this.interaction as ButtonInteraction).update( - payloads - ); + const message = await ( + this.interaction as MessageComponentInteraction + ).update(payloads); this.paginate(message as Message); return message as Message; }