Miga
Miga
DIAdiscord.js - Imagine an app
Created by Miga on 11/17/2023 in #djs-voice
Bot joins but does nothing
code:
const player = createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Pause,
},
});
joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
}).subscribe(player);

const resource = createAudioResource(join('..', '..', 'assets', 'idgaf.mp3'));

player.play(resource);
const player = createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Pause,
},
});
joinVoiceChannel({
channelId: interaction.member.voice.channelId,
guildId: interaction.guild.id,
adapterCreator: interaction.guild.voiceAdapterCreator,
}).subscribe(player);

const resource = createAudioResource(join('..', '..', 'assets', 'idgaf.mp3'));

player.play(resource);
26 replies