import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
import { SlashCommand } from '../../utils/types';
import { context } from '../../config/context';

const command: SlashCommand = {
  guildOnly: true,
  data: new SlashCommandBuilder().setName('pause').setDescription('Pausiert die Wiedergabe.'),
  async execute(interaction: ChatInputCommandInteraction) {
    if (!interaction.guildId) return;
    context.music.pause(interaction.guildId);
    await interaction.reply({ content: 'Pausiert.' });
  }
};

export default command;
