diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-20 17:54:56 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-20 18:05:51 -0500 |
| commit | e5c86859e4c6a9a6829bcc2e3cf626b05a873ff7 (patch) | |
| tree | 96c04baa3f064a160a595a0faf73696cc5cf8eaa /Commands/list.js | |
| parent | 239b254760381946f57d6cbccb077f5341ca2f30 (diff) | |
| download | DLAP-e5c86859e4c6a9a6829bcc2e3cf626b05a873ff7.tar.gz DLAP-e5c86859e4c6a9a6829bcc2e3cf626b05a873ff7.tar.bz2 DLAP-e5c86859e4c6a9a6829bcc2e3cf626b05a873ff7.zip | |
Revamped next/previous cmds (Voting system); Basic i18n support;
Diffstat (limited to 'Commands/list.js')
| -rw-r--r-- | Commands/list.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Commands/list.js b/Commands/list.js index 176ae61..90d3cc6 100644 --- a/Commands/list.js +++ b/Commands/list.js @@ -18,6 +18,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. * ***************************************************************************/ + import { EmbedBuilder, SlashCommandBuilder } from 'discord.js'; import { readdir } from 'node:fs'; @@ -38,7 +39,7 @@ export default { console.error(err); } else { const trackList = files.map((file, i) => `${i}: ${file}`); // Create an array of track names - const pageSize = 10; // Number of tracks per page + const pageSize = 20; // Number of tracks per page const numPages = Math.ceil(trackList.length / pageSize); // Total number of pages if (page < 1 || page > numPages) { // Check if the page number is valid return await interaction.reply({ content: `Invalid page number. Please specify a number between 1 and ${numPages}.`, ephemeral: true }); |
