mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 14:35:00 +00:00
Add direct search to Stations class
This commit is contained in:
1 parent
7f791e0075
commit
145e23cc91
3 files changed
+24
-3
No files matched your search
@@ -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