music: string length restraints moment
This commit is contained in:
parent
902b3f77f9
commit
1ecf729e51
1 changed files with 2 additions and 2 deletions
|
@ -687,7 +687,7 @@ command.callback = async function (msg, line) {
|
|||
queue.slice(0, 25).map((item) => {
|
||||
const user = hf.bot.users.get(item.addedBy);
|
||||
return {
|
||||
key: item.url,
|
||||
key: item.url.substring(0, 100),
|
||||
display: (item.title ?? item.url).substr(0, 100),
|
||||
description:
|
||||
hasManageMessages &&
|
||||
|
@ -701,7 +701,7 @@ command.callback = async function (msg, line) {
|
|||
if (Array.isArray(toRemove)) {
|
||||
for (const removedItem of toRemove) {
|
||||
connection._music_queue = connection._music_queue.filter(
|
||||
(item) => item.url !== removedItem
|
||||
(item) => !item.url.startsWith(removedItem)
|
||||
);
|
||||
}
|
||||
return `Removed ${toRemove.length} item(s).`;
|
||||
|
|
Loading…
Reference in a new issue