[Bug]: SimpleCommandOption not parsing boolean well
barthofu opened this issue · comments
What happened?
When using the @SimpleCommandOption with a boolean
type, the resulted parameter is not well parsed as it will always be true, no matter what we type.
Example:
Command on discord | Output |
---|---|
![]() |
![]() |
Reproduction
@SimpleCommand("maintenance")
async maintenance(
@SimpleCommandOption("state") state: boolean
): Promise<void> {
console.log(state)
}
Package
discordx
Version
Stable
Relevant log output
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
patch released 🎉