2.0.2 • Published 1 year ago
@distube/spotify v2.0.2
@distube/spotify
A DisTube info extractor plugin for supporting Spotify.
What is an info extractor plugin?
Usage
const Discord = require("discord.js");
const client = new Discord.Client();
const { DisTube } = require("distube");
const { SpotifyPlugin } = require("@distube/spotify");
const distube = new DisTube(client, {
plugins: [new SpotifyPlugin()],
});
Documentation
SpotifyPlugin(SpotifyPluginOptions)
SpotifyPluginOptions.api
: (Optional) Spotify API credentials.SpotifyPluginOptions.api.clientId
: Client ID of your Spotify application (Optional - Used when the plugin cannot get the credentials automatically)SpotifyPluginOptions.api.clientSecret
: Client Secret of your Spotify application (Optional - Used when the plugin cannot get the credentials automatically)SpotifyPluginOptions.api.topTracksCountry
: Country code of the top artist tracks (ISO 3166-1 alpha-2 country code). Default isUS
.
Example
new SpotifyPlugin({
api: {
clientId: "SpotifyAppClientID",
clientSecret: "SpotifyAppClientSecret",
topTracksCountry: "VN",
},
});
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.6.1
1 year ago
1.6.0
1 year ago
1.5.2
2 years ago
1.4.5
3 years ago
1.4.4
3 years ago
1.4.3
3 years ago
1.5.1
3 years ago
1.5.0
3 years ago
1.4.2
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.2.1
3 years ago
1.0.0
4 years ago
0.6.4
4 years ago
0.6.3
4 years ago
0.6.2
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago