fix skip command and now playing callback
This commit is contained in:
parent
4680bfecc9
commit
37fbce4a3a
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue