Replace any types to more strict types

This commit is contained in:
Christer Warén
2023-06-06 04:58:01 +03:00
parent bc238d919d
commit 3686cd1b0e
7 changed files with 29 additions and 27 deletions

View File

@ -1,12 +1,13 @@
import { ButtonInteraction, ChatInputCommandInteraction, StringSelectMenuInteraction } from "discord.js";
import RadioClient from "../../Client";
import { station } from "../classes/Stations"
import { command } from "../commands";
export default {
name: 'next',
description: 'Next Station',
category: 'radio',
async execute(interaction: ButtonInteraction | ChatInputCommandInteraction | StringSelectMenuInteraction, client: RadioClient, command: any) {
async execute(interaction: ButtonInteraction | ChatInputCommandInteraction | StringSelectMenuInteraction, client: RadioClient, command: command) {
if (client.funcs.check(client, interaction, command)) {
const radio = client.radio?.get(interaction.guild?.id);