discordx-ts / discordx

🤖 Create a discord bot with TypeScript and Decorators!

Home Page:https://discordx.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: grouping does not work as expected

samarmeena opened this issue · comments

What happened?

Issue 1: below command is not created as expected either

@Discord()
export class Event1 {
  @Slash()
  @SlashGroup("cars")
  b(): void {
    //
  }
}

@Discord()
@SlashGroup("tools", {
  cars: "cars tools",
})
export class Event {
  @Slash()
  @SlashGroup("cars")
  a(): void {
    //
  }
}

Issue 2: defining groups at multilevel and on different files is hard method.

Reproduction

https://github.com/oceanroleplay/discord.ts/tree/issue-group

Package

discordx

Version

Stable

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct