fjodor-rybakov / discord-nestjs

👾 NestJS package for discord.js
MIT License
271 stars 49 forks source link

Added channel type to `@Param` #1214

Closed zodiia closed 1 month ago

zodiia commented 2 months ago

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 commented 2 months ago

https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/core#%E2%84%B9%EF%B8%8F-channel- how about that?

zodiia commented 1 month ago

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.