fix: never doing an actual request to the API

This commit is contained in:
2022-09-03 18:02:54 +02:00
parent 3e9c3f5b2a
commit 1e2961e77d

View File

@@ -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) {