Closed kabirjaipal closed 2 years ago
Apparently https://github.com/Azusfin/lavacoffee/commit/6bbe0a45d661f3ea13767d97d47e44d8c5fee843 break some codes that tries to import dist/utils
, it should be changed to using Utils
ex. from
const Utils = require("lavacoffee/dist/utils")
to
const { Utils } = require("lavacoffee")
example how to connect a node
lava.add({
name: "LAVA-MAIN-1",
url: "<your lavalink server url>",
password: "<your lavalink server password>",
secure: false // whether the server allow secure protocol or not (when set to true, it will use wss and https instead of ws and http)
})
basic usage: lava.add(NodeOptions)
with lava.init("<bot id>")
need to be called once the bot is ready
Apparently 6bbe0a4 break some codes that tries to import
dist/utils
, it should be changed to using Utils ex. fromconst Utils = require("lavacoffee/dist/utils")
to
const { Utils } = require("lavacoffee")
you can also keep old code because it was fixed in https://github.com/Azusfin/lavacoffee/releases/tag/v1.5.1
Closed for 7 days of inactivity