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]: 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
image image

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 🎉