We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2448471 commit f36401eCopy full SHA for f36401e
1 file changed
index.js
@@ -1,5 +1,6 @@
1
const { Client, GatewayIntentBits, REST, Routes } = require("discord.js");
2
const { DisTube } = require("distube");
3
+const { YouTubePlugin } = require("@distube/youtube");
4
const mongoose = require("mongoose");
5
const fs = require("fs");
6
const colors = require("colors");
@@ -17,6 +18,7 @@ client.cooldowns = {};
17
18
19
// Create DisTube instance
20
client.distube = new DisTube(client, {
21
+ plugins: [new YouTubePlugin()],
22
nsfw: config.DISTUBE_NSFW,
23
savePreviousSongs: config.DISTUBE_SAVE_PREVIOUS_SONGS,
24
customFilters: config.DISTUBE_CUSTOM_FILTERS
0 commit comments