This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
legacy-musicbot/player/searchInvalidResponse.js
2020-12-27 01:18:00 +01:00

6 lines
372 B
JavaScript

module.exports = (client, message, query, tracks, content, collector) => {
if (content === 'cancel') {
collector.stop();
return message.channel.send(`${client.emotes.success} - The selection has been **cancelled** !`);
} else message.channel.send(`${client.emotes.error} - You must send a valid number between **1** and **${tracks.length}** !`);
};