Updated subcommands to use default export

This commit is contained in:
2024-01-04 21:37:11 +01:00
parent bada95acd7
commit f7e35029f7
8 changed files with 15 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ import {
} from "../../utils/Hypixel"
import { ChatInputCommandInteraction } from "discord.js"
export async function beast(
export default async function beast(
interaction: ChatInputCommandInteraction,
): Promise<void> {
await interaction.deferReply()

View File

@@ -2,7 +2,7 @@ import { ChatInputCommandInteraction } from "discord.js"
import { color, devMessage } from "../../../config/options.json"
import { ExtendedClient as Client } from "../../utils/Client"
export async function help(
export default async function help(
interaction: ChatInputCommandInteraction,
client: Client,
): Promise<void> {

View File

@@ -6,7 +6,7 @@ import env from "../../utils/Env"
import { getGuild } from "../../utils/Hypixel"
import { GuildData } from "../../interfaces"
export async function updateDiscordRoles(
export default async function updateDiscordRoles(
interaction: ChatInputCommandInteraction,
): Promise<void> {
const discordMember = interaction.member as GuildMember