Noblox refusing to give me the ImageURL

Unsure if I’m allowed to put this here since it’s not fully Roblox Coding instead JS, I was wondering by chance does anyone have an Idea of how to fix this? I cant seem to get it :confused:

const noblox = require('noblox.js')

async function getAvatarData(message, args, client){
  const user = args.splice(0).join(" ")
  if (!user){message.reply("Cannot do this without a listed player!"); return};

  let userid = await noblox.getIdFromUsername(user)
  let thumbnail = await noblox.getPlayerThumbnail(userid, 420, "png", false, "headshot")
  console.log(thumbnail)
  message.reply(thumbnail.imageUrl)
}

Can you show the code that calls this function?

I believe you need to capitalize the H.

https://noblox.js.org/lib_user_getPlayerThumbnail.js.html

Correct.

Hm, let me try this real quick then come back so sorry for not responding I was busy with other things haha!

Alrighty tried doing this from what I’m seeing I can’t send an (empty message)

const noblox = require('noblox.js')

async function getAvatarData(message, args, client){
  const user = args.splice(0).join(" ")
  if (!user){message.reply("Cannot do this without a listed player!"); return};

  let userid = await noblox.getIdFromUsername(user)
  let thumbnail = await noblox.getPlayerThumbnail(userid, 420, "png", false, "Headshot")
  console.log(thumbnail)
  message.reply(thumbnail.imageUrl)
}

module.exports = {
  name: "getinfo",
  description: "Get info from the specific member!",
  
  execute(message, args, client){
    getAvatarData(message, args, client)
  }
}

full code basically but weirdly will not accept an (image.imageURL) which means it’s undefined so I’m unsure if this is Noblox’s doing that won’t let me do this or not.

Apologies for the lateness of my reply. Try logging the parameters of the function to see if the data is correct or not.

Alrighty, I’ll go ahead and try this now.

Sorry for the bump.

Did you find a solution for this?

I believe I have, apologies for that!