mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-25 11:01:56 +01:00
24 lines
607 B
TypeScript
24 lines
607 B
TypeScript
|
import { TransformPipe } from '@discord-nestjs/common';
|
||
|
|
||
|
import {
|
||
|
Command,
|
||
|
DiscordTransformedCommand,
|
||
|
TransformedCommandExecutionContext,
|
||
|
UsePipes,
|
||
|
} from '@discord-nestjs/core';
|
||
|
import { InteractionReplyOptions } from 'discord.js';
|
||
|
|
||
|
@Command({
|
||
|
name: 'stop',
|
||
|
description: 'Stop playback entirely and clear the current playlist',
|
||
|
})
|
||
|
@UsePipes(TransformPipe)
|
||
|
export class StopPlaybackCommand implements DiscordTransformedCommand<unknown> {
|
||
|
handler(
|
||
|
dto: unknown,
|
||
|
executionContext: TransformedCommandExecutionContext<any>,
|
||
|
): InteractionReplyOptions | string {
|
||
|
return 'nice';
|
||
|
}
|
||
|
}
|