fjodor-rybakov / discord-nestjs

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

CommandInteraction undefined #1200

Closed Elias177Dev closed 5 months ago

Elias177Dev commented 5 months ago

Hey,

when i us the CommandInteraction and @InteractionEvent(SlashCommandPipe) at the same time the CommandInteraction is undefined Is there a way to fix it? Cause i need both.

My code: async onPollCommand(interaction: CommandInteraction, @InteractionEvent(SlashCommandPipe) options: DcPollDto): Promise<void> {

fjodor-rybakov commented 5 months ago

Hi! Yes, you can

async onPollCommand(@InteractionEvent() interaction: CommandInteraction, @InteractionEvent(SlashCommandPipe) options: DcPollDto):