From a5489eedee5d692383536801bc2d1950947ce77a Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 20 Oct 2024 10:25:48 +0200 Subject: [PATCH] More small tweaks --- src/commands/check.ts | 2 +- src/commands/staff/removeguildroles.ts | 2 +- src/utils/Autodeploy.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/check.ts b/src/commands/check.ts index c18ff31..ff105e0 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -24,7 +24,7 @@ export default { .setContexts(InteractionContextType.Guild), async execute({ interaction }) { - await interaction.deferReply({}) + await interaction.deferReply() const ign = interaction.options.getString("ign")! diff --git a/src/commands/staff/removeguildroles.ts b/src/commands/staff/removeguildroles.ts index 23f1622..b99e59d 100644 --- a/src/commands/staff/removeguildroles.ts +++ b/src/commands/staff/removeguildroles.ts @@ -35,7 +35,7 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid) - const verifiedUsers = await db.query.verifies.findMany({}) + const verifiedUsers = await db.query.verifies.findMany() for (const gmember of guildMembers) { const gmemberuuid = verifiedUsers.find(user => user.userID === gmember.id)?.uuid diff --git a/src/utils/Autodeploy.ts b/src/utils/Autodeploy.ts index fb90944..5848800 100644 --- a/src/utils/Autodeploy.ts +++ b/src/utils/Autodeploy.ts @@ -50,7 +50,7 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext client.on("ready", async (c) => { const guildclient = c.guilds.cache.get(env.dev.guildid)! - const currentCommands = await guildclient.commands.fetch({}) + const currentCommands = await guildclient.commands.fetch() if (!currentCommands) return const currentCommandsData = currentCommands.map(command => {