mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-28 03:22:18 +00:00
fix: never doing an actual request to the API
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user