discord-player-music
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

Welcome to the 'discord-player-music' page!


DPM Main Image


Support Server NPM downloads NPM page

About

Discord Player Music is a powerful Node.js music module for your Discord.js bot that based on Promises and has a lot of features.

  • 👍 Simple & easy to use
  • 😄 Beginner friendly
  • 🎸 Audio filters
  • 📌 Guilds Playlists
  • 📃 Lyrics
  • 📂 Multiple servers

Installation

Node.js 16.9.0 or newer is required.

$ npm install discord-player-music
$ yarn add discord-player-music
$ pnpm add discord-player-music

Example Usage

const { Client, GatewayIntentBits, Partials } = require('discord.js');
const { Player } = require('discord-player-music');

const client = new Client({
	intents: [
		GatewayIntentBits.Guilds,
		GatewayIntentBits.MessageContent,
		GatewayIntentBits.GuildMembers,
		GatewayIntentBits.GuildMessages,
		GatewayIntentBits.GuildMessageReactions,
		GatewayIntentBits.GuildVoiceStates
	],
    
	partials: [
		Partials.Channel,
		Partials.GuildMember,
		Partials.Message,
		Partials.Reaction,
		Partials.User
	]
});

client.player = new Player(client);

client.on('ready', async () => {
  	return console.log('Client is ready!');
})

client.player.on('ready', async () => {
	return console.log('Player is ready!');
})

client.login('YOUR_CLIENT_TOKEN_HERE');

Links

Thanks for using Discord Player Music

Package Sidebar

Install

npm i discord-player-music

Homepage

dpm.js.org

Weekly Downloads

6

Version

1.1.7

License

MIT

Unpacked Size

146 kB

Total Files

28

Last publish

Collaborators

  • xyligan