Closed carafelix closed 2 months ago
for the following command group:
const userCommands = new Commands() userCommands.command('start', 'example', (ctx) => { ctx.reply('a') }) userCommands.command('entecito', '_', () => {}, { prefix: '?', })
calling either:
await userCommands.setCommands(bot) bot.command('help', async (ctx) => { await ctx.setMyCommands(userCommands) })
will register when it should only register the example start command
start
for the following command group:
calling either:
will register when it should only register the example
start
command