How to get SubCommand Ids

Ggrarich1/18/2023
hello there.

I want to create slash command mention from command name and command id.
In this case, I can get global command id, but not the subcommand ids.

const allCommands = this.container.stores.get('commands');
for (const command of allCommands) {
  console.log(command[1].applicationCommandRegistry.globalCommandId)
}
AOAnswer Overflow1/18/2023
FFavna1/18/2023
Subcommands don't have IDs
Ggrarich1/18/2023
really?
https://discord.com/developers/docs/interactions/application-commands#application-command-object
applicationCommand type 1 is a subcommand.
i think subcommand have a id.
FFavna1/18/2023
They don't.
FFavna1/18/2023
The ID listed there is the ID of the command
FFavna1/18/2023
Subcommands are under the options property
FFavna1/18/2023
Subcommands don't have IDs
FFavna1/18/2023
I don't know how else to tell you
FFavna1/18/2023
And if you don't believe me then ask someone else for a second opinion
FFavna1/18/2023
But don't keep denying it because you're not gonna get anywhere that way
Ggrarich1/18/2023
@Favna
I terribly sorry about this.
I just re-retrieved all the commands from the API and sure enough, there are no IDs in the subcommands.
Thank you very much for your thoughtful response.