Small fix in play.js

This commit is contained in:
Christer Warén 2021-08-26 23:33:28 +03:00
parent 0ac8491a96
commit a6d1f68191

View File

@ -76,7 +76,7 @@ module.exports = {
content: client.messageEmojis["error"] + client.messages.tooShortSearch, content: client.messageEmojis["error"] + client.messages.tooShortSearch,
ephemeral: true ephemeral: true
}); });
const sstation = await searchStation(query.slice(1), client); const sstation = await searchStation(query, client);
if (!sstation) if (!sstation)
return interaction.reply({ return interaction.reply({
content: client.messageEmojis["error"] + client.messages.noSearchResults, content: client.messageEmojis["error"] + client.messages.noSearchResults,