TravBot-v3/src/modules/lavalink.ts

25 lines
865 B
TypeScript
Raw Normal View History

2021-03-31 07:00:03 +00:00
import attachClientToLavalink from "discord.js-lavalink-lib";
import {Config} from "../core/structures";
2021-03-31 02:56:25 +00:00
import {client} from "../index";
2021-03-31 07:00:03 +00:00
// Although the example showed to do "client.music = LavaLink(...)" and "(client as any).music = Lavalink(...)" was done to match that, nowhere in the library is client.music ever actually used nor does the function return anything. In other words, client.music is undefined and is never used.
attachClientToLavalink(client, {
2021-03-31 02:56:25 +00:00
lavalink: {
restnode: {
host: "localhost",
port: 2333,
password: "youshallnotpass"
},
nodes: [
{
host: "localhost",
port: 2333,
password: "youshallnotpass"
2021-03-31 02:56:25 +00:00
}
]
},
prefix: Config.prefix,
helpCmd: "mhelp",
admins: ["717352467280691331"]
});