Added types for subcommands

This commit is contained in:
2025-01-12 19:40:20 +01:00
parent 53914fa9dd
commit 560ad899f8
19 changed files with 81 additions and 42 deletions

View File

@@ -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