added rzeczy

This commit is contained in:
Patryk Koreń
2025-12-26 20:45:38 +01:00
parent 375779de9c
commit b551cce62a
14 changed files with 326 additions and 91 deletions

27
src/commands/resume.ts Normal file
View File

@@ -0,0 +1,27 @@
import { CacheType, ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
import { resume_playback } from '../playback';
import { player } from '../main';
const name = "resume"
function register() {
return new SlashCommandBuilder()
.setName(name)
.setDescription('resume playback')
}
async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
try {
resume_playback(player)
} catch (error) {
console.error(error);
await interaction.reply('Coś poszło nie tak :/');
}
}
export default {
name,
register,
execute
}