mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Merge pull request #237 from VlaDexa/patch-1
(fix): Fixing a small typo in Spotify Examples
This commit is contained in:
@@ -15,7 +15,7 @@ client.on('messageCreate', async message => {
|
|||||||
adapterCreator: message.guild.voiceAdapterCreator
|
adapterCreator: message.guild.voiceAdapterCreator
|
||||||
})
|
})
|
||||||
if(play.is_expired()){
|
if(play.is_expired()){
|
||||||
await play.RefreshToken() // This will check if access token has expired or not. If yes, then refresh the token.
|
await play.refreshToken() // This will check if access token has expired or not. If yes, then refresh the token.
|
||||||
}
|
}
|
||||||
let args = message.content.split('play ')[1].split(' ')[0]
|
let args = message.content.split('play ')[1].split(' ')[0]
|
||||||
let sp_data = await play.spotify(args) // This will get spotify data from the url [ I used track url, make sure to make a logic for playlist, album ]
|
let sp_data = await play.spotify(args) // This will get spotify data from the url [ I used track url, make sure to make a logic for playlist, album ]
|
||||||
|
|||||||
Reference in New Issue
Block a user