format wiadomości
This commit is contained in:
@@ -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 :/');
|
||||
|
||||
Reference in New Issue
Block a user