mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Typings in listStations function
This commit is contained in:
parent
95216f5acc
commit
227e0bcaaa
@ -1,8 +1,8 @@
|
|||||||
import { ActionRowBuilder, SelectMenuComponentOptionData, StringSelectMenuBuilder } from "discord.js";
|
import { ActionRowBuilder, ButtonInteraction, ChatInputCommandInteraction, SelectMenuComponentOptionData, StringSelectMenuBuilder, StringSelectMenuInteraction } from "discord.js";
|
||||||
import RadioClient from "../../Client";
|
import RadioClient from "../../Client";
|
||||||
import { station } from "../classes/Stations";
|
import { station } from "../classes/Stations";
|
||||||
|
|
||||||
export default function listStations(client: RadioClient, interaction: any){
|
export default function listStations(client: RadioClient, interaction: ButtonInteraction | ChatInputCommandInteraction | StringSelectMenuInteraction){
|
||||||
if(!client.stations) return;
|
if(!client.stations) return;
|
||||||
|
|
||||||
let options : SelectMenuComponentOptionData[] = new Array();
|
let options : SelectMenuComponentOptionData[] = new Array();
|
||||||
@ -16,7 +16,7 @@ export default function listStations(client: RadioClient, interaction: any){
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const menu = new ActionRowBuilder()
|
const menu: ActionRowBuilder<any> = new ActionRowBuilder()
|
||||||
.addComponents(
|
.addComponents(
|
||||||
new StringSelectMenuBuilder()
|
new StringSelectMenuBuilder()
|
||||||
.setCustomId('play')
|
.setCustomId('play')
|
||||||
|
Loading…
Reference in New Issue
Block a user