fix skip command and now playing callback

This commit is contained in:
sykora 2024-07-20 15:03:18 -05:00
parent 4680bfecc9
commit 37fbce4a3a
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ export const skipCommand = {
export async function skip( interaction: Interaction) { export async function skip( interaction: Interaction) {
if (!interaction.guildId) return; if (!interaction.guildId) return;
await interaction.deferReply();
await ensureVoiceConnection(interaction); await ensureVoiceConnection(interaction);
const subscription = subscriptions.get(interaction.guildId); const subscription = subscriptions.get(interaction.guildId);
await interaction.followUp(waitingForResponse); await interaction.followUp(waitingForResponse);

View file

@ -162,6 +162,7 @@ export class MusicSubscription {
this.queueLock = false; this.queueLock = false;
this.playing = true; this.playing = true;
this.nowPlaying = nextTrack; this.nowPlaying = nextTrack;
nowPlayingCallback(this);
} }
} catch (error) { } catch (error) {
// If an error occurred, try the next item of the queue instead // If an error occurred, try the next item of the queue instead