grarich
grarich
SIASapphire - Imagine a framework
Created by grarich on 1/18/2023 in #sapphire-support
How to get SubCommand Ids
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)
}
const allCommands = this.container.stores.get('commands');
for (const command of allCommands) {
console.log(command[1].applicationCommandRegistry.globalCommandId)
}
13 replies