format wiadomości

This commit is contained in:
Patryk Koreń
2026-01-03 20:58:23 +01:00
parent 765157f754
commit 28b6546c25
10 changed files with 118 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
import { CacheType, ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
import { skip_song } from '../playback';
import { msg_skipped } from '../messages';
const name = "skip"
@@ -12,8 +13,8 @@ function register() {
async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
try {
await interaction.deferReply()
skip_song()
await interaction.editReply('skipped');
const skipped = skip_song()
await interaction.editReply(msg_skipped(skipped));
} catch (error) {
console.error(error);
await interaction.reply('Coś poszło nie tak :/');