From 35def3cf7c710afc8ca51bac2b785eded29cd74f Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 6 Aug 2023 18:56:09 +0500 Subject: [PATCH] fix random error? --- commands/Music/play.js | 2 +- pnpm-lock.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/Music/play.js b/commands/Music/play.js index c370148c..c1934816 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -99,7 +99,7 @@ class Play extends BaseCommand { return interaction.respond( results.tracks.slice(0, 10).map(track => ({ - name: (`${track.author} - ${track.title}`.length >= 100) & (`${track.author} - ${track.title}`.slice(0, 90) + "...") || `${track.author} - ${track.title}`, + name: (`${track.author} - ${track.title}`.length >= 100) & (`${track.author} - ${track.title}`.slice(0, 80) + "...") || `${track.author} - ${track.title}`, value: track.url, })), ); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 83d9d379..dc14dad8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1426,6 +1426,7 @@ packages: /memory-pager@1.5.0: resolution: {integrity: sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==} + requiresBuild: true dev: false optional: true @@ -2043,6 +2044,7 @@ packages: /sparse-bitfield@3.0.3: resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==} + requiresBuild: true dependencies: memory-pager: 1.5.0 dev: false