necordjs / necord

🤖 A module for creating Discord bots using NestJS, based on Discord.js
https://necord.org
MIT License
355 stars 14 forks source link

Group commands overwriting instead of grouping #892

Closed ab1smo closed 1 year ago

ab1smo commented 1 year ago

Issue description

After v6.1.0 released, sub-commands weren't appearing as application commands. Downgrading to v6.0.0 fixed that.

Code sample

import { Injectable } from '@nestjs/common';
import { Subcommand, createCommandGroupDecorator } from 'necord';

const DemoCommands = createCommandGroupDecorator({
  name: 'demo',
  description: 'Just a demo command group',
});

@Injectable()
@DemoCommands()
export class TestCommands {
  @Subcommand({ name: 'first', description: 'First demo command' })
  async demoFirst() {}

  @Subcommand({ name: 'second', description: 'Second demo command' })
  async demoSecond() {}
}

discord.js version

14.13.0

nest.js version

10.2.1

Node.js version

18.17.1

Operating system

Ubuntu 22.04.3 LTS

Priority this issue should have

Medium (should be fixed soon)

Which partials do you have configured?

No Partials

Which gateway intents are you subscribing to?

GUILDS, GUILD_MEMBERS, GUILD_VOICE_STATES, GUILD_PRESENCES, GUILD_MESSAGES

SocketSomeone commented 1 year ago

Fixed https://github.com/necordjs/necord/releases/tag/v6.1.3

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.