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

@@ -9,7 +9,7 @@ import { color, devMessage } from "../../../config/options.json"
import { ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "../../interfaces/Guild"
async function guildInfo(
export default async function guildInfo(
interaction: ChatInputCommandInteraction,
): Promise<void> {
await interaction.deferReply()
@@ -241,6 +241,4 @@ async function guildInfo(
},
],
})
}
export = guildInfo
}

View File

@@ -2,7 +2,7 @@ import { getUUID, getPlayer, getGuild, getHeadURL } from "../../utils/Hypixel"
import { color, devMessage } from "../../../config/options.json"
import { ChatInputCommandInteraction } from "discord.js"
async function guildMember(
export default async function guildMember(
interaction: ChatInputCommandInteraction,
): Promise<void> {
await interaction.deferReply()
@@ -211,6 +211,4 @@ async function guildMember(
},
],
})
}
export = guildMember
}

View File

@@ -5,7 +5,7 @@ import { GuildData } from "../../interfaces/Guild"
import Illegitimate from "../../utils/Illegitimate"
const redis = Illegitimate.redis
async function guildTop(
export default async function guildTop(
interaction: ChatInputCommandInteraction,
): Promise<void> {
await interaction.deferReply()
@@ -291,6 +291,4 @@ async function guildTop(
},
],
})
}
export = guildTop
}