Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 540 Bytes

guide.md

File metadata and controls

25 lines (21 loc) · 540 Bytes

Guide for poru v4

How to create player?

const player = client.poru.createConnection({
    guildId: interaction.guild.id,
    voiceChannel: interaction.member.voice.channelId,
    textChannel: interaction.channel.id,
    deaf: true,
});

How to play songs from spotify?

const { Spotify } = require("poru-spotify");
const { Poru } = require("poru");

const spotify = new Spotify({
    clientID: "",
    clientSecret: ""
})

//plugins should be an array
const poru = new Poru(client, nodes, { plugins: [spotify] })