distube-vk-music-plugin
v2.0.3
Published
A DisTube custom plugin for supporting VK Music.
Downloads
18
Maintainers
Readme
distube-vk-music-plugin
Feature
| type | example link | ☑️ | |----------|-------------------------------------------------|----| | playlist | https://vk.com/music/playlist/-192000782_406 | ✅ | | album | https://vk.com/music/album/-2000892528_18892528 | ✅ | | artist | https://vk.com/artist/nepridymal_mty0oty4odm2mw | ✅ | | audio | https://vk.com/audio-2001624323_122624323 | ✅ | | group | https://vk.com/ne_pridymal_group | ✅ | | user | https://vk.com/titsex | ✅ |
Installation
npm install distube-vk-music-plugin
yarn add distube-vk-music-plugin
pnpm add distube-vk-music-plugin
bun add distube-vk-music-plugin
Using
import { VKMusicPlugin } from 'distube-vk-music-plugin'
import { Client, GatewayIntentBits } from 'discord.js'
import { DisTube } from 'distube'
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildVoiceStates,
]
})
const distube = new DisTube(client, {
plugins: [new VKMusicPlugin({ token: 'vk token' })]
})
client.login('bot token')
Documentation
VKMusicPlugin[VKMusicPluginOptions]
token
is required, to get it, follow the link, click "allow" and copy everything between access_token= and &expires_in