Skip to content

Commit b43d751

Browse files
committed
fixed API->createInstance(<name>), now returns a Instance class
1 parent 86e5f41 commit b43d751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/API.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,11 @@ public function getInstances()
414414
*/
415415
public function createInstance($nickname = "SinusBot MusicBot", $backend = "ts3")
416416
{
417-
return $this->request('/bot/instances', 'POST', [
417+
$resp = $this->request('/bot/instances', 'POST', [
418418
"backend" => $backend,
419419
"nick" => $nickname,
420420
]);
421+
return $this->getInstanceByUUID($resp['uuid']);
421422
}
422423

423424
/**

0 commit comments

Comments
 (0)