import { TransformPipe } from '@discord-nestjs/common'; import { Command, CommandExecutionContext, DiscordCommand, DiscordTransformedCommand, TransformedCommandExecutionContext, UsePipes, } from '@discord-nestjs/core'; import { ButtonInteraction, CacheType, ChatInputCommandInteraction, ContextMenuCommandInteraction, Interaction, InteractionReplyOptions, MessagePayload, StringSelectMenuInteraction, } from 'discord.js'; @Command({ name: 'pause', description: 'Pause or resume the playback of the current track', }) @UsePipes(TransformPipe) export class PausePlaybackCommand implements DiscordCommand { handler( interaction: | ChatInputCommandInteraction | ContextMenuCommandInteraction, executionContext: CommandExecutionContext< StringSelectMenuInteraction | ButtonInteraction >, ): string | InteractionReplyOptions { return { content: 'test', }; } }