Added types for subcommands
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType } from "discord.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
||||
import { SubCommmndClient } from "~/typings"
|
||||
|
||||
export default async function help(interaction: ChatInputCommandInteraction, client: Client): Promise<void> {
|
||||
const cmd: SubCommmndClient = async (interaction, client) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
type CommandList = {
|
||||
@@ -183,3 +183,5 @@ export default async function help(interaction: ChatInputCommandInteraction, cli
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
export default cmd
|
||||
|
||||
Reference in New Issue
Block a user