2022-12-16 16:10:16 +01:00
|
|
|
import { TransformPipe } from '@discord-nestjs/common';
|
|
|
|
|
2022-12-17 17:56:55 +01:00
|
|
|
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)
|
2022-12-17 17:56:55 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|