@@ -23,11 +23,6 @@ class Instance extends RestClient
2323 */
2424 public $ uuid = null ;
2525 /**
26- * Instance holds the Instance array
27- * @var array
28- */
29- public $ instance = null ;
30- /**
3126 * __construct
3227 *
3328 * @param string $token SinusBot auth token
@@ -36,13 +31,12 @@ class Instance extends RestClient
3631 * @param array $instance SinusBot Instance array.
3732 * @return void
3833 */
39- public function __construct ($ token , $ url , $ timeout , $ instance )
34+ public function __construct ($ token , $ url , $ timeout , $ uuid )
4035 {
4136 $ this ->token = $ token ;
4237 $ this ->url = $ url ;
4338 $ this ->timeout = $ timeout ;
44- $ this ->instance = $ instance ;
45- $ this ->uuid = $ instance ["uuid " ];
39+ $ this ->uuid = $ uuid ;
4640 }
4741 /**
4842 * isPlaying returns true when the instance is playing something
@@ -78,7 +72,7 @@ public function delete()
7872
7973
8074 /**
81- * spawn starts the instance
75+ * spawn spawns the instance
8276 *
8377 * @return array status
8478 */
@@ -391,8 +385,7 @@ public function playPrevious()
391385 return $ this ->request ('/bot/i/ ' .$ this ->uuid .'/playPrevious ' , 'POST ' , '' );
392386 }
393387
394-
395- /**
388+ /**
396389 * playNext will play the next track
397390 *
398391 * @return array status
@@ -426,7 +419,7 @@ public function playShuffle($shuffleState = 1)
426419
427420
428421/**
429- * stop stops the instance
422+ * stop stops the playback
430423 *
431424 * @return array status
432425 */
0 commit comments