TypeError: filter is not a constructor
Closed this issue · 1 comments
SavageFRVR commented
const filter = require('erela.js-filters'); // I have this at the beginning of my file, i just placed it here for you to see how i have imported it
client.manager = new Manager({
plugins: [
new Spotify({
clientID: spotifyID,
clientSecret: spotifySecret,
}),
new filter(), // Error here <- TypeError: filter is not a constructor
],
nodes: [{
host: ip,
port: port,
password: password,
}],
autoPlay: true,
send: (id, payload) => {
const guild = client.guilds.cache.get(id);
if (guild) guild.shard.send(payload);
},
});
rohank05 commented
Fixed in version 1.2.5