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

Added channel type to @Param #1214

Closed

Conversation

zodiia
Copy link

@zodiia zodiia commented Sep 10, 2024

Currently, when creating params for a command, the @Param's type field doesn't support the channel type, despite it being a possible option type with the official Discord API.

This pull request adds the CHANNEL type to ParamType, updates the NonParamOption type and added a case for it when converting to Discord API types.

@fjodor-rybakov
Copy link
Owner

@zodiia
Copy link
Author

zodiia commented Sep 20, 2024

This was unfortunately only mentioned in the docs in the definitions list, and I didn't see it. I don't exactly understand why it has to be a different decorator, but I'll use that. Thanks.

@zodiia zodiia closed this Sep 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants