Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Can't use @Option as a required option #59

Closed
zLupa opened this issue Jun 21, 2021 · 0 comments
Closed

Can't use @Option as a required option #59

zLupa opened this issue Jun 21, 2021 · 0 comments

Comments

@zLupa
Copy link

zLupa commented Jun 21, 2021

I'm trying to create a required option in a Slash Command, but it shows as a non-required option for some reason.

How to reproduce:

@Discord()
@Guild("<redacted>")
@Group("test", "Testing command sub-groups with options")
export default abstract class TestCommand {
  @Slash("brega", { description: "test sub-command" })
  async runCommand(
    @Option("randomOption", "STRING", {
      description: "This option is required.",
      required: true,
    })
    categoryTicketID: string,

    interaction: CommandInteraction
  ) {
    interaction.reply("Certa noite em campo grande.");
  }
}

The slash command is created and the option appears, but not as a required option.
No errors are showing in logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant