How to access interaction.options.getSubcommand()

Hi, I have a command in which I also have two subcommands.
However when I try to access the subcommand via the getSubcommand() the function is not available for me
Was this page helpful?