© 2026 Hedgehog Software, LLC
const connection = joinVoiceChannel({ channelId: channel.id, guildId: interaction.guildId, adapterCreator: channel.guild.voiceAdapterCreator, selfDeaf: false }); const player = createAudioPlayer({ behaviors: {noSubscriber: NoSubscriberBehavior.Pause}, }); connection.subscribe(player) const resource = createAudioResource('music/Steps.mp3', { metadata: {channel: channel} }); player.play(resource); interaction.editReply(`Playing ${channel.toString()}`)
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members