discord-jellyfin-bot/src/commands/current.command.ts

26 lines
806 B
TypeScript
Raw Normal View History

2022-12-16 16:10:16 +01:00
import { TransformPipe } from '@discord-nestjs/common';
import { Command, DiscordCommand, UsePipes } from '@discord-nestjs/core';
import { CommandInteraction } from 'discord.js';
import { DiscordMessageService } from '../clients/discord/discord.message.service';
import { GenericCustomReply } from '../models/generic-try-handler';
2022-12-16 16:10:16 +01:00
@Command({
name: 'current',
description: 'Print the current track information',
})
@UsePipes(TransformPipe)
export class CurrentTrackCommand implements DiscordCommand {
constructor(private readonly discordMessageService: DiscordMessageService) {}
handler(interaction: CommandInteraction): GenericCustomReply {
return {
embeds: [
this.discordMessageService.buildErrorMessage({
title: 'NOT IMPLEMENTED',
}),
],
};
2022-12-16 16:10:16 +01:00
}
}