npm.io
1.1.7 • Published 4 years ago

discord-player-music

Licence
MIT
Version
1.1.7
Deps
9
Size
142 kB
Vulns
1
Weekly
0
Stars
5

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');

Thanks for using Discord Player Music

Keywords