Version 0.6.2 - Fix des fonctionnalités externes de la version
This commit is contained in:
		@@ -178,7 +178,7 @@ module.exports.List = class {
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async playlistAdd(playlist, interaction) {
 | 
			
		||||
    async playlistAdd(playlist, interaction, userId) {
 | 
			
		||||
 | 
			
		||||
        if(interaction) {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -177,11 +177,11 @@ module.exports.getState = function(client, interaction) {
 | 
			
		||||
        
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
module.exports.playPlaylist = function (data, client) {
 | 
			
		||||
module.exports.playPlaylist = function (id, client) {
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    list.playlistAdd(data, null)
 | 
			
		||||
    list.playlistAdd(data, null, id)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -94,7 +94,7 @@ module.exports.playPlaylist = function (id, name) {
 | 
			
		||||
    if(playlists[id][name]) {
 | 
			
		||||
        plog.log("Ajout de la playlist à l'utilisateur \"" + id  + "\" dans la liste de lecture !")
 | 
			
		||||
        
 | 
			
		||||
        subplayer.playPlaylist(playlists[id][name])
 | 
			
		||||
        subplayer.playPlaylist(id, playlists[id][name])
 | 
			
		||||
    } else {
 | 
			
		||||
 | 
			
		||||
        plog.log("L'utilisateur \"" + id  + "\" n'a pas une playlist avec le nom "+ name + " dans la base de donnée Playlist !")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user