From 14c2f4581ffdffd54417d6c86f2c96d6e7388dba Mon Sep 17 00:00:00 2001 From: Roman Khabarov Date: Sun, 23 Jun 2024 10:21:13 +0000 Subject: [PATCH] Deploy website - based on 7a5970a70d0d376e5c2f7ba336a7af7f044120ca --- 404.html | 2 +- __docusaurus/debug.html | 2 +- __docusaurus/debug/config.html | 2 +- __docusaurus/debug/content.html | 2 +- __docusaurus/debug/globalData.html | 2 +- __docusaurus/debug/metadata.html | 2 +- __docusaurus/debug/registry.html | 2 +- __docusaurus/debug/routes.html | 2 +- assets/js/1d02dd36.2ce0823e.js | 1 + assets/js/1d02dd36.7a6f267a.js | 1 - ...time~main.654f5dcc.js => runtime~main.d876fdd0.js} | 2 +- contributing/code-of-conduct.html | 2 +- contributing/commit-convention.html | 2 +- contributing/contribution-guide.html | 2 +- contributing/funding.html | 2 +- index.html | 2 +- interactions/context-menus.html | 2 +- interactions/message-components.html | 2 +- interactions/modals.html | 2 +- interactions/slash-commands.html | 2 +- interceptors/defer-interceptor.html | 2 +- listeners.html | 2 +- packages/localization.html | 2 +- packages/pagination.html | 11 +++++++---- packages/stat-reporter.html | 2 +- search.html | 2 +- start.html | 2 +- sw.js | 2 +- techniques/async-configuration.html | 2 +- techniques/client-providers.html | 2 +- techniques/sharding.html | 2 +- techniques/standalone-application.html | 2 +- techniques/validation.html | 2 +- text-commands.html | 2 +- 34 files changed, 39 insertions(+), 36 deletions(-) create mode 100644 assets/js/1d02dd36.2ce0823e.js delete mode 100644 assets/js/1d02dd36.7a6f267a.js rename assets/js/{runtime~main.654f5dcc.js => runtime~main.d876fdd0.js} (98%) diff --git a/404.html b/404.html index aac2ebe..4596a74 100644 --- a/404.html +++ b/404.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug.html b/__docusaurus/debug.html index 66f1d3c..430bb82 100644 --- a/__docusaurus/debug.html +++ b/__docusaurus/debug.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/config.html b/__docusaurus/debug/config.html index 2e6595b..d51496b 100644 --- a/__docusaurus/debug/config.html +++ b/__docusaurus/debug/config.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/content.html b/__docusaurus/debug/content.html index 86057c0..3e519d2 100644 --- a/__docusaurus/debug/content.html +++ b/__docusaurus/debug/content.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/globalData.html b/__docusaurus/debug/globalData.html index a764e17..1f4c555 100644 --- a/__docusaurus/debug/globalData.html +++ b/__docusaurus/debug/globalData.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/metadata.html b/__docusaurus/debug/metadata.html index 82aa13a..d957ca3 100644 --- a/__docusaurus/debug/metadata.html +++ b/__docusaurus/debug/metadata.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/registry.html b/__docusaurus/debug/registry.html index 89abd9b..0dc6dd8 100644 --- a/__docusaurus/debug/registry.html +++ b/__docusaurus/debug/registry.html @@ -14,7 +14,7 @@ - + diff --git a/__docusaurus/debug/routes.html b/__docusaurus/debug/routes.html index 2a7b9ba..5be91a1 100644 --- a/__docusaurus/debug/routes.html +++ b/__docusaurus/debug/routes.html @@ -14,7 +14,7 @@ - + diff --git a/assets/js/1d02dd36.2ce0823e.js b/assets/js/1d02dd36.2ce0823e.js new file mode 100644 index 0000000..575c861 --- /dev/null +++ b/assets/js/1d02dd36.2ce0823e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[753],{2611:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>d,frontMatter:()=>o,metadata:()=>r,toc:()=>c});var a=t(6070),i=t(5710);const o={id:"pagination",title:"Pagination",sidebar_position:1},s=void 0,r={id:"packages/pagination",title:"Pagination",description:"Certainly! Pagination is a useful technique employed in user interfaces to present large amounts of information in a structured and",source:"@site/content/packages/pagination.md",sourceDirName:"packages",slug:"/packages/pagination",permalink:"/packages/pagination",draft:!1,unlisted:!1,editUrl:"https://github.com/GlobalArtInc/nestcord/tree/master/docs/content/packages/pagination.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"pagination",title:"Pagination",sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Defer command",permalink:"/interceptors/defer-interceptor"},next:{title:"Localization",permalink:"/packages/localization"}},l={},c=[{value:"Usage",id:"usage",level:2},{value:"Buttons pagination",id:"buttons-pagination",level:3},{value:"Select Menu Pagination",id:"select-menu-pagination",level:3}];function p(n){const e={code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",...(0,i.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.p,{children:"Certainly! Pagination is a useful technique employed in user interfaces to present large amounts of information in a structured and\nmanageable way. When dealing with substantial volumes of data, such as search results, articles, or product listings, presenting it all at\nonce can overwhelm users and lead to a poor user experience. Pagination allows you to divide the information into smaller, organized chunks,\nenhancing user engagement and ease of navigation. This module allows you to create a pagination with a few lines of code."}),"\n",(0,a.jsx)(e.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsxs)(e.p,{children:["Once the installation process is complete, we can import the ",(0,a.jsx)(e.code,{children:"NestCordPaginationModule"})," with your ",(0,a.jsx)(e.code,{children:"NestCordModule"})," into the root ",(0,a.jsx)(e.code,{children:"AppModule"}),":"]}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-typescript",children:"import { NestCordModule } from '@globalart/nestcord';\nimport { Module } from '@nestjs/common';\nimport { NestCordPaginationModule } from '@globalart/nestcord';\nimport { AppService } from './app.service';\n\n@Module({\n imports: [\n NestCordModule.forRoot({\n token: 'DISCORD_BOT_TOKEN',\n intents: ['Guilds', 'GuildMessages', 'DirectMessages']\n }),\n NestCordPaginationModule.forRoot(null)\n ],\n providers: [AppService]\n})\nexport class AppModule {}\n"})}),"\n",(0,a.jsxs)(e.p,{children:["Then, we can inject the ",(0,a.jsx)(e.code,{children:"PaginationService"})," into our service and register a pagination handler:"]}),"\n",(0,a.jsx)(e.h3,{id:"buttons-pagination",children:"Buttons pagination"}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-typescript",children:"import { OnModuleInit, Injectable } from '@nestjs/common';\nimport { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';\nimport { Context, SlashCommand, PaginatorTypeEnum, SlashCommandContext } from '@globalart/nestcord';\n\n@Injectable()\nexport class AppService implements OnModuleInit {\n public constructor(private readonly paginationService: NestCordPaginationService) {\n }\n\n public onModuleInit(): void {\n this.paginationService.register(PaginatorTypeEnum.BUTTONS, (builder) =>\n builder\n .setCustomId('test')\n \n );\n }\n\n @SlashCommand({ name: 'pagination', description: 'Test pagination' })\n public async onPagination(@Context() [interaction]: SlashCommandContext) {\n const pagination = this.paginationService.get('test');\n pagination.setButtons([\n [\n { \n customId: 'page1',\n label: 'Page 1',\n style: ButtonStyle.Secondary,\n },\n { \n customId: 'page2',\n label: 'Page 2',\n style: ButtonStyle.Secondary,\n }\n ]\n ]);\n pagination.setPages([\n new PageBuilder().setContent('Page 1'),\n new PageBuilder().setContent('Page 2')\n ]);\n const page = await pagination.build(1);\n\n return interaction.reply(page);\n }\n}\n"})}),"\n",(0,a.jsx)(e.h3,{id:"select-menu-pagination",children:"Select Menu Pagination"}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-typescript",children:"import { OnModuleInit, Injectable } from '@nestjs/common';\nimport { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';\nimport { Context, SlashCommand, PaginatorTypeEnum, SlashCommandContext } from '@globalart/nestcord';\n\n@Injectable()\nexport class AppService implements OnModuleInit {\n public constructor(private readonly paginationService: NestCordPaginationService) {\n }\n\n public onModuleInit(): void {\n this.paginationService.register(PaginatorTypeEnum.SELECT_MENU, (builder) =>\n builder\n .setCustomId('test')\n \n );\n }\n\n @SlashCommand({ name: 'pagination', description: 'Test pagination' })\n public async onPagination(@Context() [interaction]: SlashCommandContext) {\n const pagination = this.paginationService.get('test');\n pagination.setSelectMenuItems(this.setMenuItems());\n pagination.setPages(this.setMenuPages());\n const page = await pagination.build('page1');\n\n return interaction.reply(page);\n }\n\n @StringSelect('nestcord-pagination/test')\n async MenusInteraction(@Context() [interaction]: ButtonContext, @SelectedStrings() selected: string[]) {\n const selectedPage = selected?.[0] || null;\n const pagination = this.paginationService.get('menus');\n pagination.setSelectMenuItems(this.setMenuItems());\n pagination.setPages(this.setMenuPages());\n const page = await pagination.build(selectedPage);\n\n await interaction.update(page);\n }\n\n private readonly setMenuPages() {\n return [\n {\n pageId: 'page1',\n builder: new PageBuilder().setContent('Page 1'),\n },\n {\n pageId: 'page2',\n builder: new PageBuilder().setContent('Page 2'),\n },\n ];\n }\n\n private readonly setMenuItems() {\n return [\n {\n label: 'Page 1',\n value: 'page1',\n },\n {\n label: 'Page 2',\n value: 'page2',\n },\n ]\n }\n}\n"})}),"\n",(0,a.jsxs)(e.p,{children:["Congratulations! You have successfully created your first pagination!\nJust use ",(0,a.jsx)(e.code,{children:"pagination"})," command and you will see your pagination!"]})]})}function d(n={}){const{wrapper:e}={...(0,i.R)(),...n.components};return e?(0,a.jsx)(e,{...n,children:(0,a.jsx)(p,{...n})}):p(n)}},5710:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>r});var a=t(758);const i={},o=a.createContext(i);function s(n){const e=a.useContext(o);return a.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function r(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(i):n.components||i:s(n.components),a.createElement(o.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/1d02dd36.7a6f267a.js b/assets/js/1d02dd36.7a6f267a.js deleted file mode 100644 index f34060e..0000000 --- a/assets/js/1d02dd36.7a6f267a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[753],{2611:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>p,frontMatter:()=>i,metadata:()=>r,toc:()=>l});var a=t(6070),o=t(5710);const i={id:"pagination",title:"Pagination",sidebar_position:1},s=void 0,r={id:"packages/pagination",title:"Pagination",description:"Certainly! Pagination is a useful technique employed in user interfaces to present large amounts of information in a structured and",source:"@site/content/packages/pagination.md",sourceDirName:"packages",slug:"/packages/pagination",permalink:"/packages/pagination",draft:!1,unlisted:!1,editUrl:"https://github.com/GlobalArtInc/nestcord/tree/master/docs/content/packages/pagination.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"pagination",title:"Pagination",sidebar_position:1},sidebar:"docsSidebar",previous:{title:"Defer command",permalink:"/interceptors/defer-interceptor"},next:{title:"Localization",permalink:"/packages/localization"}},c={},l=[{value:"Usage",id:"usage",level:2}];function d(e){const n={code:"code",h2:"h2",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.p,{children:"Certainly! Pagination is a useful technique employed in user interfaces to present large amounts of information in a structured and\nmanageable way. When dealing with substantial volumes of data, such as search results, articles, or product listings, presenting it all at\nonce can overwhelm users and lead to a poor user experience. Pagination allows you to divide the information into smaller, organized chunks,\nenhancing user engagement and ease of navigation. This module allows you to create a pagination with a few lines of code."}),"\n",(0,a.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsxs)(n.p,{children:["Once the installation process is complete, we can import the ",(0,a.jsx)(n.code,{children:"NestCordPaginationModule"})," with your ",(0,a.jsx)(n.code,{children:"NestCordModule"})," into the root ",(0,a.jsx)(n.code,{children:"AppModule"}),":"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-typescript",children:"import { NestCordModule } from '@globalart/nestcord';\nimport { Module } from '@nestjs/common';\nimport { NestCordPaginationModule } from '@globalart/nestcord';\nimport { AppService } from './app.service';\n\n@Module({\n imports: [\n NestCordModule.forRoot({\n token: 'DISCORD_BOT_TOKEN',\n intents: ['Guilds', 'GuildMessages', 'DirectMessages']\n }),\n NestCordPaginationModule.forRoot({\n // Change your buttons appearance\n buttons: {},\n // Add buttons for skip to first and last page\n allowSkip: true,\n // Add buttons for search page\n allowTraversal: true\n })\n ],\n providers: [AppService]\n})\nexport class AppModule {}\n"})}),"\n",(0,a.jsxs)(n.p,{children:["Then, we can inject the ",(0,a.jsx)(n.code,{children:"PaginationService"})," into our service and register a pagination handler:"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-typescript",children:"import { OnModuleInit, Injectable } from '@nestjs/common';\nimport { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';\nimport { Context, SlashCommand, SlashCommandContext } from '@globalart/nestcord';\n\n@Injectable()\nexport class AppService implements OnModuleInit {\n public constructor(private readonly paginationService: NestCordPaginationService) {\n }\n\n public onModuleInit(): void {\n return this.paginationService.register(builder =>\n builder\n // Required, need for search your builder\n .setCustomId('test')\n // First way to set pages\n .setPages([\n new PageBuilder().setContent('Page 1'),\n new PageBuilder().setContent('Page 2'),\n new PageBuilder().setContent('Page 3'),\n new PageBuilder().setContent('Page 4'),\n new PageBuilder().setContent('Page 5')\n ])\n // Second way, you can manually set pages using `setPages` method\n .setPagesFactory(page => new PageBuilder().setContent(`Page ${page}`))\n // Optional, only if you want to use pages factory\n .setMaxPages(5)\n );\n }\n\n @SlashCommand({ name: 'pagination', description: 'Test pagination' })\n public async onPagination(@Context() [interaction]: SlashCommandContext) {\n const pagination = this.paginationService.get('test');\n const page = await pagination.build();\n\n return interaction.reply(page);\n }\n}\n"})}),"\n",(0,a.jsxs)(n.p,{children:["Congratulations! You have successfully created your first pagination!\nJust use ",(0,a.jsx)(n.code,{children:"pagination"})," command and you will see your pagination!"]})]})}function p(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},5710:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>r});var a=t(758);const o={},i=a.createContext(o);function s(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.654f5dcc.js b/assets/js/runtime~main.d876fdd0.js similarity index 98% rename from assets/js/runtime~main.654f5dcc.js rename to assets/js/runtime~main.d876fdd0.js index 0c9a973..fb15d69 100644 --- a/assets/js/runtime~main.654f5dcc.js +++ b/assets/js/runtime~main.d876fdd0.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,t,r,d,o={},f={};function c(e){var a=f[e];if(void 0!==a)return a.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,c),t.loaded=!0,t.exports}c.m=o,c.c=f,e=[],c.O=(a,t,r,d)=>{if(!t){var o=1/0;for(i=0;i=d)&&Object.keys(c.O).every((e=>c.O[e](t[b])))?t.splice(b--,1):(f=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);c.r(d);var o={};a=a||[null,t({}),t([]),t(t)];for(var f=2&r&&e;"object"==typeof f&&!~a.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((a=>o[a]=()=>e[a]));return o.default=()=>e,c.d(d,o),d},c.d=(e,a)=>{for(var t in a)c.o(a,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,t)=>(c.f[t](e,a),a)),[])),c.u=e=>"assets/js/"+({48:"a94703ab",98:"a7bd4aaa",123:"ede3a018",138:"1a4e3797",140:"e7393073",174:"5aea931f",222:"b38399eb",254:"68e633d4",315:"9eb1dac9",329:"66d9f3df",365:"717a4525",399:"a4b529fe",401:"17896441",497:"f217256c",504:"d291a071",506:"003b49f9",531:"393eff57",539:"7eb5a8bf",567:"22dd74f7",597:"3c0a97de",610:"946bd85a",647:"5e95c892",680:"6794d4cd",713:"6c4d718c",742:"aba21aa0",753:"1d02dd36",793:"ebd218ab",810:"9ce5ed71",815:"ba8b3534",886:"0b6bdc6b",911:"23abe487",931:"ec3f407b",936:"107a3993",957:"c141421f",978:"a7f4de78",981:"7d07d949",984:"5ca74542"}[e]||e)+"."+{43:"37d158a2",48:"e8c68aa1",98:"54a9f721",123:"3bb38c40",138:"6d5600fe",140:"505ed063",174:"abda0e45",222:"b50206ab",254:"d8332719",300:"30a0d5cd",315:"67926fb5",329:"c421a468",365:"e500b740",399:"05fb8963",401:"f5d444cf",431:"cae4ca62",497:"787d3070",504:"4e06f95c",506:"0812a3f2",531:"a7016edb",539:"a7999c0e",567:"aa312007",597:"6a5c3fdb",610:"1046101e",647:"9fb68879",680:"f48320b9",713:"f857faa6",742:"eb7bf6f2",753:"7a6f267a",793:"be6b4cd9",795:"67995017",810:"f4cf5300",815:"8f6afdff",873:"71e8067e",886:"c79070e0",911:"cb53ba38",931:"56aff0d0",935:"6519dbf5",936:"ffa1b29a",957:"faee654a",978:"aa550ef0",981:"f5a6cf03",984:"446ff499",994:"5efa2256"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="docs:",c.l=(e,a,t,o)=>{if(r[e])r[e].push(a);else{var f,b;if(void 0!==t)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"401",a94703ab:"48",a7bd4aaa:"98",ede3a018:"123","1a4e3797":"138",e7393073:"140","5aea931f":"174",b38399eb:"222","68e633d4":"254","9eb1dac9":"315","66d9f3df":"329","717a4525":"365",a4b529fe:"399",f217256c:"497",d291a071:"504","003b49f9":"506","393eff57":"531","7eb5a8bf":"539","22dd74f7":"567","3c0a97de":"597","946bd85a":"610","5e95c892":"647","6794d4cd":"680","6c4d718c":"713",aba21aa0:"742","1d02dd36":"753",ebd218ab:"793","9ce5ed71":"810",ba8b3534:"815","0b6bdc6b":"886","23abe487":"911",ec3f407b:"931","107a3993":"936",c141421f:"957",a7f4de78:"978","7d07d949":"981","5ca74542":"984"}[e]||e,c.p+c.u(e)},(()=>{var e={354:0,869:0};c.f.j=(a,t)=>{var r=c.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(354|869)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var o=c.p+c.u(a),f=new Error;c.l(o,(t=>{if(c.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+o+")",f.name="ChunkLoadError",f.type=d,f.request=o,r[1](f)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,o=t[0],f=t[1],b=t[2],n=0;if(o.some((a=>0!==e[a]))){for(r in f)c.o(f,r)&&(c.m[r]=f[r]);if(b)var i=b(c)}for(a&&a(t);n{"use strict";var e,a,t,r,d,o={},f={};function c(e){var a=f[e];if(void 0!==a)return a.exports;var t=f[e]={id:e,loaded:!1,exports:{}};return o[e].call(t.exports,t,t.exports,c),t.loaded=!0,t.exports}c.m=o,c.c=f,e=[],c.O=(a,t,r,d)=>{if(!t){var o=1/0;for(i=0;i=d)&&Object.keys(c.O).every((e=>c.O[e](t[b])))?t.splice(b--,1):(f=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,r,d]},c.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return c.d(a,{a:a}),a},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var d=Object.create(null);c.r(d);var o={};a=a||[null,t({}),t([]),t(t)];for(var f=2&r&&e;"object"==typeof f&&!~a.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((a=>o[a]=()=>e[a]));return o.default=()=>e,c.d(d,o),d},c.d=(e,a)=>{for(var t in a)c.o(a,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((a,t)=>(c.f[t](e,a),a)),[])),c.u=e=>"assets/js/"+({48:"a94703ab",98:"a7bd4aaa",123:"ede3a018",138:"1a4e3797",140:"e7393073",174:"5aea931f",222:"b38399eb",254:"68e633d4",315:"9eb1dac9",329:"66d9f3df",365:"717a4525",399:"a4b529fe",401:"17896441",497:"f217256c",504:"d291a071",506:"003b49f9",531:"393eff57",539:"7eb5a8bf",567:"22dd74f7",597:"3c0a97de",610:"946bd85a",647:"5e95c892",680:"6794d4cd",713:"6c4d718c",742:"aba21aa0",753:"1d02dd36",793:"ebd218ab",810:"9ce5ed71",815:"ba8b3534",886:"0b6bdc6b",911:"23abe487",931:"ec3f407b",936:"107a3993",957:"c141421f",978:"a7f4de78",981:"7d07d949",984:"5ca74542"}[e]||e)+"."+{43:"37d158a2",48:"e8c68aa1",98:"54a9f721",123:"3bb38c40",138:"6d5600fe",140:"505ed063",174:"abda0e45",222:"b50206ab",254:"d8332719",300:"30a0d5cd",315:"67926fb5",329:"c421a468",365:"e500b740",399:"05fb8963",401:"f5d444cf",431:"cae4ca62",497:"787d3070",504:"4e06f95c",506:"0812a3f2",531:"a7016edb",539:"a7999c0e",567:"aa312007",597:"6a5c3fdb",610:"1046101e",647:"9fb68879",680:"f48320b9",713:"f857faa6",742:"eb7bf6f2",753:"2ce0823e",793:"be6b4cd9",795:"67995017",810:"f4cf5300",815:"8f6afdff",873:"71e8067e",886:"c79070e0",911:"cb53ba38",931:"56aff0d0",935:"6519dbf5",936:"ffa1b29a",957:"faee654a",978:"aa550ef0",981:"f5a6cf03",984:"446ff499",994:"5efa2256"}[e]+".js",c.miniCssF=e=>{},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),r={},d="docs:",c.l=(e,a,t,o)=>{if(r[e])r[e].push(a);else{var f,b;if(void 0!==t)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var d=r[e];if(delete r[e],f.parentNode&&f.parentNode.removeChild(f),d&&d.forEach((e=>e(t))),a)return a(t)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=l.bind(null,f.onerror),f.onload=l.bind(null,f.onload),b&&document.head.appendChild(f)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.p="/",c.gca=function(e){return e={17896441:"401",a94703ab:"48",a7bd4aaa:"98",ede3a018:"123","1a4e3797":"138",e7393073:"140","5aea931f":"174",b38399eb:"222","68e633d4":"254","9eb1dac9":"315","66d9f3df":"329","717a4525":"365",a4b529fe:"399",f217256c:"497",d291a071:"504","003b49f9":"506","393eff57":"531","7eb5a8bf":"539","22dd74f7":"567","3c0a97de":"597","946bd85a":"610","5e95c892":"647","6794d4cd":"680","6c4d718c":"713",aba21aa0:"742","1d02dd36":"753",ebd218ab:"793","9ce5ed71":"810",ba8b3534:"815","0b6bdc6b":"886","23abe487":"911",ec3f407b:"931","107a3993":"936",c141421f:"957",a7f4de78:"978","7d07d949":"981","5ca74542":"984"}[e]||e,c.p+c.u(e)},(()=>{var e={354:0,869:0};c.f.j=(a,t)=>{var r=c.o(e,a)?e[a]:void 0;if(0!==r)if(r)t.push(r[2]);else if(/^(354|869)$/.test(a))e[a]=0;else{var d=new Promise(((t,d)=>r=e[a]=[t,d]));t.push(r[2]=d);var o=c.p+c.u(a),f=new Error;c.l(o,(t=>{if(c.o(e,a)&&(0!==(r=e[a])&&(e[a]=void 0),r)){var d=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+a+" failed.\n("+d+": "+o+")",f.name="ChunkLoadError",f.type=d,f.request=o,r[1](f)}}),"chunk-"+a,a)}},c.O.j=a=>0===e[a];var a=(a,t)=>{var r,d,o=t[0],f=t[1],b=t[2],n=0;if(o.some((a=>0!==e[a]))){for(r in f)c.o(f,r)&&(c.m[r]=f[r]);if(b)var i=b(c)}for(a&&a(t);n - + diff --git a/contributing/commit-convention.html b/contributing/commit-convention.html index 9d81385..18b5ccd 100644 --- a/contributing/commit-convention.html +++ b/contributing/commit-convention.html @@ -14,7 +14,7 @@ - + diff --git a/contributing/contribution-guide.html b/contributing/contribution-guide.html index c0c2fea..1e5eca1 100644 --- a/contributing/contribution-guide.html +++ b/contributing/contribution-guide.html @@ -14,7 +14,7 @@ - + diff --git a/contributing/funding.html b/contributing/funding.html index b2f7d4d..d1c64d4 100644 --- a/contributing/funding.html +++ b/contributing/funding.html @@ -14,7 +14,7 @@ - + diff --git a/index.html b/index.html index 6cf870a..6cc1db2 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,7 @@ - + diff --git a/interactions/context-menus.html b/interactions/context-menus.html index d081a95..7cfa762 100644 --- a/interactions/context-menus.html +++ b/interactions/context-menus.html @@ -14,7 +14,7 @@ - + diff --git a/interactions/message-components.html b/interactions/message-components.html index 5837f2a..8e04cec 100644 --- a/interactions/message-components.html +++ b/interactions/message-components.html @@ -14,7 +14,7 @@ - + diff --git a/interactions/modals.html b/interactions/modals.html index 9350938..3175686 100644 --- a/interactions/modals.html +++ b/interactions/modals.html @@ -14,7 +14,7 @@ - + diff --git a/interactions/slash-commands.html b/interactions/slash-commands.html index 4fd45b4..f52f071 100644 --- a/interactions/slash-commands.html +++ b/interactions/slash-commands.html @@ -14,7 +14,7 @@ - + diff --git a/interceptors/defer-interceptor.html b/interceptors/defer-interceptor.html index 1411632..9557b22 100644 --- a/interceptors/defer-interceptor.html +++ b/interceptors/defer-interceptor.html @@ -14,7 +14,7 @@ - + diff --git a/listeners.html b/listeners.html index 8f00e61..0ec3b03 100644 --- a/listeners.html +++ b/listeners.html @@ -14,7 +14,7 @@ - + diff --git a/packages/localization.html b/packages/localization.html index fcf0a80..c783d0d 100644 --- a/packages/localization.html +++ b/packages/localization.html @@ -14,7 +14,7 @@ - + diff --git a/packages/pagination.html b/packages/pagination.html index e2ed757..c5a6d3a 100644 --- a/packages/pagination.html +++ b/packages/pagination.html @@ -14,7 +14,7 @@ - + @@ -24,10 +24,13 @@ enhancing user engagement and ease of navigation. This module allows you to create a pagination with a few lines of code.

Usage

Once the installation process is complete, we can import the NestCordPaginationModule with your NestCordModule into the root AppModule:

-
import { NestCordModule } from '@globalart/nestcord';
import { Module } from '@nestjs/common';
import { NestCordPaginationModule } from '@globalart/nestcord';
import { AppService } from './app.service';

@Module({
imports: [
NestCordModule.forRoot({
token: 'DISCORD_BOT_TOKEN',
intents: ['Guilds', 'GuildMessages', 'DirectMessages']
}),
NestCordPaginationModule.forRoot({
// Change your buttons appearance
buttons: {},
// Add buttons for skip to first and last page
allowSkip: true,
// Add buttons for search page
allowTraversal: true
})
],
providers: [AppService]
})
export class AppModule {}
+
import { NestCordModule } from '@globalart/nestcord';
import { Module } from '@nestjs/common';
import { NestCordPaginationModule } from '@globalart/nestcord';
import { AppService } from './app.service';

@Module({
imports: [
NestCordModule.forRoot({
token: 'DISCORD_BOT_TOKEN',
intents: ['Guilds', 'GuildMessages', 'DirectMessages']
}),
NestCordPaginationModule.forRoot(null)
],
providers: [AppService]
})
export class AppModule {}

Then, we can inject the PaginationService into our service and register a pagination handler:

-
import { OnModuleInit, Injectable } from '@nestjs/common';
import { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';
import { Context, SlashCommand, SlashCommandContext } from '@globalart/nestcord';

@Injectable()
export class AppService implements OnModuleInit {
public constructor(private readonly paginationService: NestCordPaginationService) {
}

public onModuleInit(): void {
return this.paginationService.register(builder =>
builder
// Required, need for search your builder
.setCustomId('test')
// First way to set pages
.setPages([
new PageBuilder().setContent('Page 1'),
new PageBuilder().setContent('Page 2'),
new PageBuilder().setContent('Page 3'),
new PageBuilder().setContent('Page 4'),
new PageBuilder().setContent('Page 5')
])
// Second way, you can manually set pages using `setPages` method
.setPagesFactory(page => new PageBuilder().setContent(`Page ${page}`))
// Optional, only if you want to use pages factory
.setMaxPages(5)
);
}

@SlashCommand({ name: 'pagination', description: 'Test pagination' })
public async onPagination(@Context() [interaction]: SlashCommandContext) {
const pagination = this.paginationService.get('test');
const page = await pagination.build();

return interaction.reply(page);
}
}
+

Buttons pagination

+
import { OnModuleInit, Injectable } from '@nestjs/common';
import { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';
import { Context, SlashCommand, PaginatorTypeEnum, SlashCommandContext } from '@globalart/nestcord';

@Injectable()
export class AppService implements OnModuleInit {
public constructor(private readonly paginationService: NestCordPaginationService) {
}

public onModuleInit(): void {
this.paginationService.register(PaginatorTypeEnum.BUTTONS, (builder) =>
builder
.setCustomId('test')

);
}

@SlashCommand({ name: 'pagination', description: 'Test pagination' })
public async onPagination(@Context() [interaction]: SlashCommandContext) {
const pagination = this.paginationService.get<PaginatorTypeEnum.BUTTONS>('test');
pagination.setButtons([
[
{
customId: 'page1',
label: 'Page 1',
style: ButtonStyle.Secondary,
},
{
customId: 'page2',
label: 'Page 2',
style: ButtonStyle.Secondary,
}
]
]);
pagination.setPages([
new PageBuilder().setContent('Page 1'),
new PageBuilder().setContent('Page 2')
]);
const page = await pagination.build(1);

return interaction.reply(page);
}
}
+

Select Menu Pagination

+
import { OnModuleInit, Injectable } from '@nestjs/common';
import { NestCordPaginationService, PageBuilder } from '@globalart/nestcord/pagination';
import { Context, SlashCommand, PaginatorTypeEnum, SlashCommandContext } from '@globalart/nestcord';

@Injectable()
export class AppService implements OnModuleInit {
public constructor(private readonly paginationService: NestCordPaginationService) {
}

public onModuleInit(): void {
this.paginationService.register(PaginatorTypeEnum.SELECT_MENU, (builder) =>
builder
.setCustomId('test')

);
}

@SlashCommand({ name: 'pagination', description: 'Test pagination' })
public async onPagination(@Context() [interaction]: SlashCommandContext) {
const pagination = this.paginationService.get<PaginatorTypeEnum.SELECT_MENU>('test');
pagination.setSelectMenuItems(this.setMenuItems());
pagination.setPages(this.setMenuPages());
const page = await pagination.build('page1');

return interaction.reply(page);
}

@StringSelect('nestcord-pagination/test')
async MenusInteraction(@Context() [interaction]: ButtonContext, @SelectedStrings() selected: string[]) {
const selectedPage = selected?.[0] || null;
const pagination = this.paginationService.get<PaginatorTypeEnum.SELECT_MENU>('menus');
pagination.setSelectMenuItems(this.setMenuItems());
pagination.setPages(this.setMenuPages());
const page = await pagination.build(selectedPage);

await interaction.update(page);
}

private readonly setMenuPages() {
return [
{
pageId: 'page1',
builder: new PageBuilder().setContent('Page 1'),
},
{
pageId: 'page2',
builder: new PageBuilder().setContent('Page 2'),
},
];
}

private readonly setMenuItems() {
return [
{
label: 'Page 1',
value: 'page1',
},
{
label: 'Page 2',
value: 'page2',
},
]
}
}

Congratulations! You have successfully created your first pagination! -Just use pagination command and you will see your pagination!

+Just use pagination command and you will see your pagination!

\ No newline at end of file diff --git a/packages/stat-reporter.html b/packages/stat-reporter.html index 8ddaa0b..49cd4e1 100644 --- a/packages/stat-reporter.html +++ b/packages/stat-reporter.html @@ -14,7 +14,7 @@ - + diff --git a/search.html b/search.html index 9b78720..5e934c1 100644 --- a/search.html +++ b/search.html @@ -14,7 +14,7 @@ - + diff --git a/start.html b/start.html index 4ac44f5..8e3b77a 100644 --- a/start.html +++ b/start.html @@ -14,7 +14,7 @@ - + diff --git a/sw.js b/sw.js index 0b975c5..326260c 100644 --- a/sw.js +++ b/sw.js @@ -4556,7 +4556,7 @@ function getPossibleURLs(url) { (async () => { const params = parseSwParams(); // eslint-disable-next-line no-underscore-dangle - const precacheManifest = [{"revision":"fea3623c31b9c6590030bb18f8b55b46","url":"__docusaurus/debug.html"},{"revision":"cb4fa2e1d4b49211f54f3584860aa959","url":"__docusaurus/debug/config.html"},{"revision":"b72cea48d34a15b9fea1ab3edfe5e570","url":"__docusaurus/debug/content.html"},{"revision":"f436e6bab5cafa4fed4e57c4facf7c4d","url":"__docusaurus/debug/globalData.html"},{"revision":"a5062916d84b82010f23c866ea61b354","url":"__docusaurus/debug/metadata.html"},{"revision":"3c9cebb58912df6878d3e45577bad656","url":"__docusaurus/debug/registry.html"},{"revision":"a32558fffa62da5eefc2887ff1c643c0","url":"__docusaurus/debug/routes.html"},{"revision":"5397b470c21f288dd41676ea573c56b2","url":"404.html"},{"revision":"f5d98bfb8fd369686b878bf089e3b4e2","url":"assets/css/styles.0f6ada5c.css"},{"revision":"181103243427352e979bb680ff5834fd","url":"assets/js/003b49f9.0812a3f2.js"},{"revision":"c306ac7c12dc99e75c59b36ed05ada1c","url":"assets/js/0b6bdc6b.c79070e0.js"},{"revision":"b29d94b1c011569b8450d1294c4d9744","url":"assets/js/107a3993.ffa1b29a.js"},{"revision":"f425db06f7813bad7c315ae2a901590c","url":"assets/js/17896441.f5d444cf.js"},{"revision":"33e529fb55eb1b631af7dd5b71bf939a","url":"assets/js/1a4e3797.6d5600fe.js"},{"revision":"ce755a83819c3bca9833608bdb522f09","url":"assets/js/1d02dd36.7a6f267a.js"},{"revision":"7a10eff6760154bba43e1f7bf4673f01","url":"assets/js/22dd74f7.aa312007.js"},{"revision":"0218a6be85b0c181d6fd12aec48e790e","url":"assets/js/23abe487.cb53ba38.js"},{"revision":"ce3e98f1aacf49ff6f8033a79300f1f9","url":"assets/js/300.30a0d5cd.js"},{"revision":"73c057f3f0f39a4374fec6f4cbcd82c5","url":"assets/js/393eff57.a7016edb.js"},{"revision":"de5ac8defc42697ba0a04fedd731ff67","url":"assets/js/3c0a97de.6a5c3fdb.js"},{"revision":"54925b4757e09ddc0ec12d4570e9f67e","url":"assets/js/43.37d158a2.js"},{"revision":"388b792334f595be1b5912b9249e4270","url":"assets/js/431.cae4ca62.js"},{"revision":"d1d26f819c8b4b224b5a51ea312f1b5b","url":"assets/js/5aea931f.abda0e45.js"},{"revision":"4cbb743ab8f8261384f7173653b6857c","url":"assets/js/5ca74542.446ff499.js"},{"revision":"5b61802ecf7c3a65a39b0a14080c8200","url":"assets/js/5e95c892.9fb68879.js"},{"revision":"e4748400595bfe3392f397ac5768e3cb","url":"assets/js/66d9f3df.c421a468.js"},{"revision":"eef75540c845951dcb0a216ff3ec47a4","url":"assets/js/6794d4cd.f48320b9.js"},{"revision":"c34ecb2024b8a97e28838aaafe383729","url":"assets/js/68e633d4.d8332719.js"},{"revision":"8634b0a7946846cab41a4a762eab39a7","url":"assets/js/6c4d718c.f857faa6.js"},{"revision":"c035942383a93af11f2992e1077702cc","url":"assets/js/717a4525.e500b740.js"},{"revision":"9bfb0020f88718bed8476a2a787949be","url":"assets/js/795.67995017.js"},{"revision":"e47ca1bd4ae74b5d3a97b865f51fb7d2","url":"assets/js/7d07d949.f5a6cf03.js"},{"revision":"3b41edf1750cefe058d67921bcbeeb1c","url":"assets/js/7eb5a8bf.a7999c0e.js"},{"revision":"374c9d3e43de7cd384823326281c5a5a","url":"assets/js/873.71e8067e.js"},{"revision":"74429b60ff917b29657f4d300312d7b1","url":"assets/js/935.6519dbf5.js"},{"revision":"a4f7369f81a23520ae3d178ed9061d8e","url":"assets/js/946bd85a.1046101e.js"},{"revision":"28c3a83b34336f97854986072b8c4128","url":"assets/js/994.5efa2256.js"},{"revision":"88ef992199fef00a0f5c72887e08df5d","url":"assets/js/9ce5ed71.f4cf5300.js"},{"revision":"7aa358c591f8a18910d0a94005b695fe","url":"assets/js/9eb1dac9.67926fb5.js"},{"revision":"3d5508696445348a1e4a6b92b8641853","url":"assets/js/a4b529fe.05fb8963.js"},{"revision":"d1c545cf97ed8bf06eaabf2f8b24eea7","url":"assets/js/a7bd4aaa.54a9f721.js"},{"revision":"dbde0dc76c60bdb9bda38d969a4532dd","url":"assets/js/a7f4de78.aa550ef0.js"},{"revision":"dc3a0fbfc07d7c924ab28a48dc932b98","url":"assets/js/a94703ab.e8c68aa1.js"},{"revision":"9137f75b4d3f64d3490035c7b7f03687","url":"assets/js/aba21aa0.eb7bf6f2.js"},{"revision":"d45f166006e05d9c423a4b6536a23dfb","url":"assets/js/b38399eb.b50206ab.js"},{"revision":"bff4b33fcb0811c73ae933384a132ca9","url":"assets/js/ba8b3534.8f6afdff.js"},{"revision":"babf611af288d78166ee5e8729cedf6e","url":"assets/js/c141421f.faee654a.js"},{"revision":"fda7827794c0119f64911e7c96a66750","url":"assets/js/d291a071.4e06f95c.js"},{"revision":"e96c0535ca2f2606022b52d9ad7a9843","url":"assets/js/e7393073.505ed063.js"},{"revision":"e1b2ad7c8c1e2378cc0b4cb360c65246","url":"assets/js/ebd218ab.be6b4cd9.js"},{"revision":"a27add3b462030a71b0a624fdc7a089f","url":"assets/js/ec3f407b.56aff0d0.js"},{"revision":"9589f1374b7c9e2b30b4fd989edaec72","url":"assets/js/ede3a018.3bb38c40.js"},{"revision":"2d0ca7b1f413c185d389668cbf2ce0f5","url":"assets/js/f217256c.787d3070.js"},{"revision":"f4db9740ed8bee1980c288558a784398","url":"assets/js/main.9e9a5527.js"},{"revision":"d826cf98c3e3636a243034bcb8dfd5e3","url":"assets/js/runtime~main.654f5dcc.js"},{"revision":"65e0132080b0cec8ffb4e7cf5a265c16","url":"contributing/code-of-conduct.html"},{"revision":"da60aa75bdfa37ab63d3c68796e56f30","url":"contributing/commit-convention.html"},{"revision":"868c7eabaf9d479c4448802f33cd4ee6","url":"contributing/contribution-guide.html"},{"revision":"0283c0f8272c6d96efe4f40c8f73e668","url":"contributing/funding.html"},{"revision":"a18461dd31ffede5bcab4259bca75298","url":"index.html"},{"revision":"a3d1efe935ecc096c148a3c8351f496b","url":"interactions/context-menus.html"},{"revision":"78863975ecfa251719cb305bce0a25ad","url":"interactions/message-components.html"},{"revision":"abb8c2b3bf31812510fdaa97f9099c5b","url":"interactions/modals.html"},{"revision":"e7df6864d30805cb9bab3ba8b2ecc11c","url":"interactions/slash-commands.html"},{"revision":"48fc64fdc615acfb90e4ccc17fd75623","url":"interceptors/defer-interceptor.html"},{"revision":"d6496afab8d5c031e28e21e222c3842d","url":"listeners.html"},{"revision":"18b35648685ab2e0f3b7e965ebfb940d","url":"manifest.json"},{"revision":"c24648168aca213ff2aed51add774b68","url":"packages/localization.html"},{"revision":"d71ed2e2052d8fc2e2c354f260cb29ba","url":"packages/pagination.html"},{"revision":"87fd1af35fe205a96ff8fc51bae79d67","url":"packages/stat-reporter.html"},{"revision":"cd057250fff6ed23c7fd9e28de8801c3","url":"search.html"},{"revision":"8dcceaa98f877cb30e514f165dc17a55","url":"start.html"},{"revision":"65362905fc749f13bcfff9521905b1a1","url":"techniques/async-configuration.html"},{"revision":"93b998c0df5659a55adef6ff6842d558","url":"techniques/client-providers.html"},{"revision":"db34b4fb4e82c6a7cc8cf06e0be56906","url":"techniques/sharding.html"},{"revision":"2900fa23602607ea0837807618030030","url":"techniques/standalone-application.html"},{"revision":"49076458f10c8104cf22dfe15dcdf0e3","url":"techniques/validation.html"},{"revision":"8a0d9fe576603fd51dc9812b8a6c1a9c","url":"text-commands.html"},{"revision":"df11bcc7825925dbbac3e158dcdd374b","url":"assets/images/context_message-74505639414ac3b590d9ea018b9f3855.png"},{"revision":"85ccfdc8d129c5d07110dc9c6edf38e9","url":"assets/images/context_user-965f24f7e000cc826cd9e835bb855ab6.png"},{"revision":"5d0136721f45a969c43bc61a6b4f98ce","url":"assets/images/slash_command_example-12de9d8060483488ad5be48eb50f1ebf.png"},{"revision":"4a1ac93f1e3ac5a7e240ee0c9c88653d","url":"assets/images/slash_command_menu-9ebf84e04a36a479bf3472be8f8f138c.png"},{"revision":"7f184c265e84df7165a4edc887228642","url":"assets/images/text_command-2eec6e27036b4cfe0bae1a98079b6135.png"},{"revision":"1d47a4d00c5b7446c78d4f3eed398047","url":"img/content/button.png"},{"revision":"df11bcc7825925dbbac3e158dcdd374b","url":"img/content/context_message.png"},{"revision":"85ccfdc8d129c5d07110dc9c6edf38e9","url":"img/content/context_user.png"},{"revision":"2087c4210e4723cc26ac1b265940c499","url":"img/content/modal.png"},{"revision":"0845178564ed70a6c657d9b40d1de8fc","url":"img/content/select-menu.png"},{"revision":"5d0136721f45a969c43bc61a6b4f98ce","url":"img/content/slash_command_example.png"},{"revision":"4a1ac93f1e3ac5a7e240ee0c9c88653d","url":"img/content/slash_command_menu.png"},{"revision":"7f184c265e84df7165a4edc887228642","url":"img/content/text_command.png"},{"revision":"686af5ee4071fbb945453775e744dbb1","url":"img/favicon.ico"},{"revision":"07779e97d8bdd18425d8edad3a3c0fda","url":"img/icons/icon-128x128.png"},{"revision":"8f5f1bee7f165894d0b9fc8bd09da7e7","url":"img/icons/icon-144x144.png"},{"revision":"ae1020e5941ffce43d9e253f691991e9","url":"img/icons/icon-152x152.png"},{"revision":"6f804c70c3dc3b87005ec6e7df5fdca5","url":"img/icons/icon-192x192.png"},{"revision":"12d27c043a64e56f33a352a7f639d9a1","url":"img/icons/icon-384x384.png"},{"revision":"064177a66c118803ec2372b5b8845519","url":"img/icons/icon-512x512.png"},{"revision":"9c5e7bbb10b00378eaf859518d5636e9","url":"img/icons/icon-72x72.png"},{"revision":"01506dee8d65c23749fdec5597e3a680","url":"img/icons/icon-96x96.png"},{"revision":"064177a66c118803ec2372b5b8845519","url":"img/logo-small.png"},{"revision":"c9d4d57d322f12101e9b753e863c319a","url":"img/logo.png"},{"revision":"44ed04901a55ce4d36038816437df570","url":"img/logo.svg"}]; + const precacheManifest = [{"revision":"d945ff0905d968727809c78016bf4971","url":"__docusaurus/debug.html"},{"revision":"cf15d0fceb47b2e61dec3fa4cedd6bf3","url":"__docusaurus/debug/config.html"},{"revision":"0f2350a7d39c776ae9c4e3c8adfd143a","url":"__docusaurus/debug/content.html"},{"revision":"b5539ae1d9b4aa763240adbd08c5f3eb","url":"__docusaurus/debug/globalData.html"},{"revision":"d934d12946f84e9e27d12239786ce370","url":"__docusaurus/debug/metadata.html"},{"revision":"7c528f31ba6b60632831a46f447eb314","url":"__docusaurus/debug/registry.html"},{"revision":"069b8f0c67265fc46b86edf8b287c605","url":"__docusaurus/debug/routes.html"},{"revision":"5304e4274c5279ca76ce0d84edbfe7ec","url":"404.html"},{"revision":"f5d98bfb8fd369686b878bf089e3b4e2","url":"assets/css/styles.0f6ada5c.css"},{"revision":"181103243427352e979bb680ff5834fd","url":"assets/js/003b49f9.0812a3f2.js"},{"revision":"c306ac7c12dc99e75c59b36ed05ada1c","url":"assets/js/0b6bdc6b.c79070e0.js"},{"revision":"b29d94b1c011569b8450d1294c4d9744","url":"assets/js/107a3993.ffa1b29a.js"},{"revision":"f425db06f7813bad7c315ae2a901590c","url":"assets/js/17896441.f5d444cf.js"},{"revision":"33e529fb55eb1b631af7dd5b71bf939a","url":"assets/js/1a4e3797.6d5600fe.js"},{"revision":"41bb5a7c5179663e9abb2aa57a8ff665","url":"assets/js/1d02dd36.2ce0823e.js"},{"revision":"7a10eff6760154bba43e1f7bf4673f01","url":"assets/js/22dd74f7.aa312007.js"},{"revision":"0218a6be85b0c181d6fd12aec48e790e","url":"assets/js/23abe487.cb53ba38.js"},{"revision":"ce3e98f1aacf49ff6f8033a79300f1f9","url":"assets/js/300.30a0d5cd.js"},{"revision":"73c057f3f0f39a4374fec6f4cbcd82c5","url":"assets/js/393eff57.a7016edb.js"},{"revision":"de5ac8defc42697ba0a04fedd731ff67","url":"assets/js/3c0a97de.6a5c3fdb.js"},{"revision":"54925b4757e09ddc0ec12d4570e9f67e","url":"assets/js/43.37d158a2.js"},{"revision":"388b792334f595be1b5912b9249e4270","url":"assets/js/431.cae4ca62.js"},{"revision":"d1d26f819c8b4b224b5a51ea312f1b5b","url":"assets/js/5aea931f.abda0e45.js"},{"revision":"4cbb743ab8f8261384f7173653b6857c","url":"assets/js/5ca74542.446ff499.js"},{"revision":"5b61802ecf7c3a65a39b0a14080c8200","url":"assets/js/5e95c892.9fb68879.js"},{"revision":"e4748400595bfe3392f397ac5768e3cb","url":"assets/js/66d9f3df.c421a468.js"},{"revision":"eef75540c845951dcb0a216ff3ec47a4","url":"assets/js/6794d4cd.f48320b9.js"},{"revision":"c34ecb2024b8a97e28838aaafe383729","url":"assets/js/68e633d4.d8332719.js"},{"revision":"8634b0a7946846cab41a4a762eab39a7","url":"assets/js/6c4d718c.f857faa6.js"},{"revision":"c035942383a93af11f2992e1077702cc","url":"assets/js/717a4525.e500b740.js"},{"revision":"9bfb0020f88718bed8476a2a787949be","url":"assets/js/795.67995017.js"},{"revision":"e47ca1bd4ae74b5d3a97b865f51fb7d2","url":"assets/js/7d07d949.f5a6cf03.js"},{"revision":"3b41edf1750cefe058d67921bcbeeb1c","url":"assets/js/7eb5a8bf.a7999c0e.js"},{"revision":"374c9d3e43de7cd384823326281c5a5a","url":"assets/js/873.71e8067e.js"},{"revision":"74429b60ff917b29657f4d300312d7b1","url":"assets/js/935.6519dbf5.js"},{"revision":"a4f7369f81a23520ae3d178ed9061d8e","url":"assets/js/946bd85a.1046101e.js"},{"revision":"28c3a83b34336f97854986072b8c4128","url":"assets/js/994.5efa2256.js"},{"revision":"88ef992199fef00a0f5c72887e08df5d","url":"assets/js/9ce5ed71.f4cf5300.js"},{"revision":"7aa358c591f8a18910d0a94005b695fe","url":"assets/js/9eb1dac9.67926fb5.js"},{"revision":"3d5508696445348a1e4a6b92b8641853","url":"assets/js/a4b529fe.05fb8963.js"},{"revision":"d1c545cf97ed8bf06eaabf2f8b24eea7","url":"assets/js/a7bd4aaa.54a9f721.js"},{"revision":"dbde0dc76c60bdb9bda38d969a4532dd","url":"assets/js/a7f4de78.aa550ef0.js"},{"revision":"dc3a0fbfc07d7c924ab28a48dc932b98","url":"assets/js/a94703ab.e8c68aa1.js"},{"revision":"9137f75b4d3f64d3490035c7b7f03687","url":"assets/js/aba21aa0.eb7bf6f2.js"},{"revision":"d45f166006e05d9c423a4b6536a23dfb","url":"assets/js/b38399eb.b50206ab.js"},{"revision":"bff4b33fcb0811c73ae933384a132ca9","url":"assets/js/ba8b3534.8f6afdff.js"},{"revision":"babf611af288d78166ee5e8729cedf6e","url":"assets/js/c141421f.faee654a.js"},{"revision":"fda7827794c0119f64911e7c96a66750","url":"assets/js/d291a071.4e06f95c.js"},{"revision":"e96c0535ca2f2606022b52d9ad7a9843","url":"assets/js/e7393073.505ed063.js"},{"revision":"e1b2ad7c8c1e2378cc0b4cb360c65246","url":"assets/js/ebd218ab.be6b4cd9.js"},{"revision":"a27add3b462030a71b0a624fdc7a089f","url":"assets/js/ec3f407b.56aff0d0.js"},{"revision":"9589f1374b7c9e2b30b4fd989edaec72","url":"assets/js/ede3a018.3bb38c40.js"},{"revision":"2d0ca7b1f413c185d389668cbf2ce0f5","url":"assets/js/f217256c.787d3070.js"},{"revision":"f4db9740ed8bee1980c288558a784398","url":"assets/js/main.9e9a5527.js"},{"revision":"d373d24f8d601689ae8f701a0fcc3662","url":"assets/js/runtime~main.d876fdd0.js"},{"revision":"16246d55a5c4abc5c208e5a5d3380037","url":"contributing/code-of-conduct.html"},{"revision":"c787b7fdef2f40646ca1cfd804be8ad5","url":"contributing/commit-convention.html"},{"revision":"87bd07ce120d49ad52065697d74f9340","url":"contributing/contribution-guide.html"},{"revision":"4ded9260e33d7eff55bac528a4f81aa2","url":"contributing/funding.html"},{"revision":"198287e357d25054c86554640c751f3e","url":"index.html"},{"revision":"d55da05146fcd4a70110009039b99f9b","url":"interactions/context-menus.html"},{"revision":"4cc3109ea7eaef964c1e8e6a37b3ba08","url":"interactions/message-components.html"},{"revision":"1d3c4b6c2934d01464e9e067c7adddd8","url":"interactions/modals.html"},{"revision":"6aa1b5f25041c20c8523caf23df41eb4","url":"interactions/slash-commands.html"},{"revision":"fcac43d528870678daed04617cabf284","url":"interceptors/defer-interceptor.html"},{"revision":"c4e688fa07dea218f8f960f586ae51f0","url":"listeners.html"},{"revision":"18b35648685ab2e0f3b7e965ebfb940d","url":"manifest.json"},{"revision":"3ebacea190ea45d6398119296cf6e6fd","url":"packages/localization.html"},{"revision":"54946411ca7da8589fa1a6d474abbbee","url":"packages/pagination.html"},{"revision":"0ac5d2f5a1cb8c4ecbda4824d3c2fb63","url":"packages/stat-reporter.html"},{"revision":"5d3e7ab8229f05a7717a25693799af71","url":"search.html"},{"revision":"5b2921bb28f6097d1173af18f86bab73","url":"start.html"},{"revision":"18172f38c6342ee63bbab611fff34912","url":"techniques/async-configuration.html"},{"revision":"b8a5f55a269d26f5f186f23bc8aed934","url":"techniques/client-providers.html"},{"revision":"8b53322bf002c8669febda808de4ccc3","url":"techniques/sharding.html"},{"revision":"56f1f7f47ce6fb0dcd45f7d2af92787a","url":"techniques/standalone-application.html"},{"revision":"16232803323450c1fb25338cb3dd810f","url":"techniques/validation.html"},{"revision":"e0228b349c6923c7090a2cbdccf22798","url":"text-commands.html"},{"revision":"df11bcc7825925dbbac3e158dcdd374b","url":"assets/images/context_message-74505639414ac3b590d9ea018b9f3855.png"},{"revision":"85ccfdc8d129c5d07110dc9c6edf38e9","url":"assets/images/context_user-965f24f7e000cc826cd9e835bb855ab6.png"},{"revision":"5d0136721f45a969c43bc61a6b4f98ce","url":"assets/images/slash_command_example-12de9d8060483488ad5be48eb50f1ebf.png"},{"revision":"4a1ac93f1e3ac5a7e240ee0c9c88653d","url":"assets/images/slash_command_menu-9ebf84e04a36a479bf3472be8f8f138c.png"},{"revision":"7f184c265e84df7165a4edc887228642","url":"assets/images/text_command-2eec6e27036b4cfe0bae1a98079b6135.png"},{"revision":"1d47a4d00c5b7446c78d4f3eed398047","url":"img/content/button.png"},{"revision":"df11bcc7825925dbbac3e158dcdd374b","url":"img/content/context_message.png"},{"revision":"85ccfdc8d129c5d07110dc9c6edf38e9","url":"img/content/context_user.png"},{"revision":"2087c4210e4723cc26ac1b265940c499","url":"img/content/modal.png"},{"revision":"0845178564ed70a6c657d9b40d1de8fc","url":"img/content/select-menu.png"},{"revision":"5d0136721f45a969c43bc61a6b4f98ce","url":"img/content/slash_command_example.png"},{"revision":"4a1ac93f1e3ac5a7e240ee0c9c88653d","url":"img/content/slash_command_menu.png"},{"revision":"7f184c265e84df7165a4edc887228642","url":"img/content/text_command.png"},{"revision":"686af5ee4071fbb945453775e744dbb1","url":"img/favicon.ico"},{"revision":"07779e97d8bdd18425d8edad3a3c0fda","url":"img/icons/icon-128x128.png"},{"revision":"8f5f1bee7f165894d0b9fc8bd09da7e7","url":"img/icons/icon-144x144.png"},{"revision":"ae1020e5941ffce43d9e253f691991e9","url":"img/icons/icon-152x152.png"},{"revision":"6f804c70c3dc3b87005ec6e7df5fdca5","url":"img/icons/icon-192x192.png"},{"revision":"12d27c043a64e56f33a352a7f639d9a1","url":"img/icons/icon-384x384.png"},{"revision":"064177a66c118803ec2372b5b8845519","url":"img/icons/icon-512x512.png"},{"revision":"9c5e7bbb10b00378eaf859518d5636e9","url":"img/icons/icon-72x72.png"},{"revision":"01506dee8d65c23749fdec5597e3a680","url":"img/icons/icon-96x96.png"},{"revision":"064177a66c118803ec2372b5b8845519","url":"img/logo-small.png"},{"revision":"c9d4d57d322f12101e9b753e863c319a","url":"img/logo.png"},{"revision":"44ed04901a55ce4d36038816437df570","url":"img/logo.svg"}]; const controller = new workbox_precaching__WEBPACK_IMPORTED_MODULE_0__.PrecacheController({ // Safer to turn this true? fallbackToNetwork: true, diff --git a/techniques/async-configuration.html b/techniques/async-configuration.html index aa36034..5c3271e 100644 --- a/techniques/async-configuration.html +++ b/techniques/async-configuration.html @@ -14,7 +14,7 @@ - + diff --git a/techniques/client-providers.html b/techniques/client-providers.html index 7f51cca..d8b60f6 100644 --- a/techniques/client-providers.html +++ b/techniques/client-providers.html @@ -14,7 +14,7 @@ - + diff --git a/techniques/sharding.html b/techniques/sharding.html index bca1f25..66d54e9 100644 --- a/techniques/sharding.html +++ b/techniques/sharding.html @@ -14,7 +14,7 @@ - + diff --git a/techniques/standalone-application.html b/techniques/standalone-application.html index 8b7b3e9..ad291af 100644 --- a/techniques/standalone-application.html +++ b/techniques/standalone-application.html @@ -14,7 +14,7 @@ - + diff --git a/techniques/validation.html b/techniques/validation.html index e895616..443ee64 100644 --- a/techniques/validation.html +++ b/techniques/validation.html @@ -14,7 +14,7 @@ - + diff --git a/text-commands.html b/text-commands.html index ee95d48..5f98580 100644 --- a/text-commands.html +++ b/text-commands.html @@ -14,7 +14,7 @@ - +