Files
UnknownAI/player/searchInvalidResponse.js
2022-05-09 19:29:50 +02: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}** !`);
};