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('resume').setDescription('Setzt die Wiedergabe fort.'),
  async execute(interaction: ChatInputCommandInteraction) {
    if (!interaction.guildId) return;
    context.music.resume(interaction.guildId);
    await interaction.reply({ content: 'Weiter gehts.' });
  }
};

export default command;
