mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 07:43:38 +00:00
Add direct search to Stations class
This commit is contained in:
@ -84,7 +84,16 @@ module.exports = {
|
||||
content: client.messageEmojis["error"] + client.messages.tooShortSearch,
|
||||
ephemeral: true
|
||||
});
|
||||
const sstation = await client.stations.search(query, client);
|
||||
|
||||
let type = "";
|
||||
|
||||
if(interaction.values?.[0]){
|
||||
type = "direct";
|
||||
} else {
|
||||
type = "text";
|
||||
}
|
||||
|
||||
const sstation = await client.stations.search(query, type);
|
||||
if (!sstation) return interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.noSearchResults,
|
||||
ephemeral: true
|
||||
|
Reference in New Issue
Block a user