From 1e2961e77d7f264db7ea0ecd6554690fdbc3d8a6 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 3 Sep 2022 18:02:54 +0200 Subject: [PATCH] fix: never doing an actual request to the API --- commands/minecraft/mcform.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/minecraft/mcform.ts b/commands/minecraft/mcform.ts index c60b579..0ef9f64 100644 --- a/commands/minecraft/mcform.ts +++ b/commands/minecraft/mcform.ts @@ -10,7 +10,8 @@ export default commandModule({ async execute (modal) { const value = modal.fields.getTextInputValue('mcUsernameInput'); try { - const request = await axios(`https://api.mojang.com/users/profiles/minecraft/${value}`).then((res) => {res.data}) + const res = await axios(`https://api.mojang.com/users/profiles/minecraft/${value}`) + const data = res.data await modal.reply({content: 'Enviado!, Gracias por utilizar tu Mona Lisa de confianza\n~Sr Izan, 2022', ephemeral: true}) modal.client.guilds.cache.get("928018226330337280").channels.cache.get("998195363376803850").send(`Solicitud enviada por ${modal.user}.\nUsername de Minecraft: ${value}`); } catch (err) {