Discord Player
Common actions

Using Eris instead of Discord.js

Learn how to use Eris instead of Discord.js with Discord Player

This feature is not currently experimental. It does not support automatic voice state handling as of now.

To use Eris, you just need to wrap your eris client with createErisCompat function from discord-player. This function will return a new client proxy which mimics the Discord.js client.

index.js
const { Player, createErisCompat } = require('discord-player');
const Eris = require('eris');
 
const client = new Eris('...');
const player = new Player(createErisCompat(client));
Because this is a proxy, the original client will not be mutated.