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

slash command and useDefineForClassFields=false #753

Closed
Mararok opened this issue Jun 6, 2022 · 1 comment
Closed

slash command and useDefineForClassFields=false #753

Mararok opened this issue Jun 6, 2022 · 1 comment

Comments

@Mararok
Copy link

Mararok commented Jun 6, 2022

Is your feature request related to a problem? Please describe.
Is possible to have useDefineForClassFields = false and defined slash command parameters?
I'm using some typescript property decorators and they are working fine when flag is disabled, but discord bot is not working fine.
When I switch flag to true discord bot working fine, but property decorator isn't working.

Describe the solution you'd like
Can sets useDefineForClassFields = false and all working :)

Describe alternatives you've considered
Any solution, tips for define slash command with parameters when useDefineForClassFields = false

@Mararok
Copy link
Author

Mararok commented Jun 6, 2022

Heh, I found solution !
It works fine now.
I leave that tip here maybe someone find it useful.

I reimplemented my decorator with this:
microsoft/TypeScript#35081 (comment)

@Mararok Mararok closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant