Can you get more interaction info from the ButtonInteraction object?

So basically, what I mean is I'm creating a command that will allow users to retrieve an image based on a selected category, and the slash command is structured like this /find category:myquery (category being an .addStringOption). Once it retrieves the image, it will post it, and then create a button saying 'Repeat'. If they click the button, it should repeat the exact same thing and post another one below. Currently, I'm receiving the ButtonInteraction object, but there's only basic information on the command within the object.

See below for the basic info I get on the interaction it originated from:
interaction: {
      id: '1056934697361481808',
      type: 2,
      commandName: 'find',
      user: [User]
}


Doesn't look like there's any way for me to retrieve hoistedOptions.
I need to know what the option was from the original post.
Let me know what you think, thanks.
Was this page helpful?