Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group commands overwriting instead of grouping #892

Closed
ab1smo opened this issue Sep 1, 2023 · 2 comments
Closed

Group commands overwriting instead of grouping #892

ab1smo opened this issue Sep 1, 2023 · 2 comments
Labels
bug Something isn't working need repro wontfix This will not be worked on

Comments

@ab1smo
Copy link

ab1smo commented Sep 1, 2023

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

@ab1smo ab1smo added bug Something isn't working need repro labels Sep 1, 2023
SocketSomeone added a commit that referenced this issue Sep 1, 2023
@SocketSomeone
Copy link
Member

Copy link

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.

@github-actions github-actions bot added the wontfix This will not be worked on label Nov 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working need repro wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants