/discord-player-music

A powerful music module for your Discord bot with lots of features.

Primary LanguageTypeScriptMIT LicenseMIT

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 ♥