Added types for subcommands
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
import { SubCommand } from "~/typings"
|
||||
|
||||
export default async function queue(interaction: ChatInputCommandInteraction) {
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
const player = useMainPlayer()
|
||||
const queue = player.queues.get(interaction.guildId!)
|
||||
@@ -37,3 +37,5 @@ export default async function queue(interaction: ChatInputCommandInteraction) {
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
||||
export default cmd
|
||||
|
||||
Reference in New Issue
Block a user