diff --git a/src/commands/guild.ts b/src/commands/guild.ts index 58207ba..ac18c58 100644 --- a/src/commands/guild.ts +++ b/src/commands/guild.ts @@ -1,9 +1,9 @@ import { SlashCommandBuilder } from "discord.js" import { color, devMessage } from "../../config/options.json" import { Command } from "../interfaces" -import guildMember = require("./guild/member") -import guildInfo = require("./guild/info") -import guildTop = require("./guild/top") +import guildMember from "./guild/member" +import guildInfo from "./guild/info" +import guildTop from "./guild/top" export = { name: "guild", diff --git a/src/commands/guild/info.ts b/src/commands/guild/info.ts index 8162af5..023322b 100644 --- a/src/commands/guild/info.ts +++ b/src/commands/guild/info.ts @@ -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 { await interaction.deferReply() @@ -241,6 +241,4 @@ async function guildInfo( }, ], }) -} - -export = guildInfo +} \ No newline at end of file diff --git a/src/commands/guild/member.ts b/src/commands/guild/member.ts index a369cd1..9a09b49 100644 --- a/src/commands/guild/member.ts +++ b/src/commands/guild/member.ts @@ -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 { await interaction.deferReply() @@ -211,6 +211,4 @@ async function guildMember( }, ], }) -} - -export = guildMember +} \ No newline at end of file diff --git a/src/commands/guild/top.ts b/src/commands/guild/top.ts index ee5c3b0..0a77f1a 100644 --- a/src/commands/guild/top.ts +++ b/src/commands/guild/top.ts @@ -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 { await interaction.deferReply() @@ -291,6 +291,4 @@ async function guildTop( }, ], }) -} - -export = guildTop +} \ No newline at end of file diff --git a/src/commands/staff.ts b/src/commands/staff.ts index 61636df..b7fd962 100644 --- a/src/commands/staff.ts +++ b/src/commands/staff.ts @@ -1,9 +1,9 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js" import { color, devMessage } from "../../config/options.json" import { Command } from "../interfaces" -import { help } from "./staff/help" -import { beast } from "./staff/beast" -import { updateDiscordRoles } from "./staff/updatediscordroles" +import help from "./staff/help" +import beast from "./staff/beast" +import updateDiscordRoles from "./staff/updatediscordroles" export = { name: "staff", diff --git a/src/commands/staff/beast.ts b/src/commands/staff/beast.ts index 821dc84..d747fea 100644 --- a/src/commands/staff/beast.ts +++ b/src/commands/staff/beast.ts @@ -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 { await interaction.deferReply() diff --git a/src/commands/staff/help.ts b/src/commands/staff/help.ts index d159c27..a6e1150 100644 --- a/src/commands/staff/help.ts +++ b/src/commands/staff/help.ts @@ -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 { diff --git a/src/commands/staff/updatediscordroles.ts b/src/commands/staff/updatediscordroles.ts index 7869f7b..2d3da76 100644 --- a/src/commands/staff/updatediscordroles.ts +++ b/src/commands/staff/updatediscordroles.ts @@ -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 { const discordMember = interaction.member as GuildMember