Added types for subcommands
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import { ChannelType, GuildMember } from "discord.js"
|
||||
import { getVerifies } from "src/drizzle/functions.js"
|
||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { IGuildData } from "~/typings"
|
||||
import { IGuildData, SubCommand } from "~/typings"
|
||||
import env from "~/utils/Env.js"
|
||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
||||
import { log } from "~/utils/Logger.js"
|
||||
|
||||
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
const discordMember = interaction.member as GuildMember
|
||||
@@ -116,3 +116,5 @@ export default async function updateAll(interaction: ChatInputCommandInteraction
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
||||
export default cmd
|
||||
|
||||
Reference in New Issue
Block a user