Added types for subcommands
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import { 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 roleManage from "~/utils/Functions/rolesmanage.js"
|
||||
import { getGuild } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
const discordMember = interaction.member as GuildMember
|
||||
@@ -52,3 +52,5 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default cmd
|
||||
|
||||
Reference in New Issue
Block a user