Added types for subcommands
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { IGuildData } from "~/typings"
|
||||
import { IGuildData, SubCommand } from "~/typings"
|
||||
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
||||
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
||||
import { redis } from "~/utils/Illegitimate.js"
|
||||
|
||||
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
const query = interaction.options.getString("query")!
|
||||
@@ -215,3 +214,5 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
||||
export default cmd
|
||||
|
||||
Reference in New Issue
Block a user