We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e5f41 commit b43d751Copy full SHA for b43d751
1 file changed
src/API.php
@@ -414,10 +414,11 @@ public function getInstances()
414
*/
415
public function createInstance($nickname = "SinusBot MusicBot", $backend = "ts3")
416
{
417
- return $this->request('/bot/instances', 'POST', [
+ $resp = $this->request('/bot/instances', 'POST', [
418
"backend" => $backend,
419
"nick" => $nickname,
420
]);
421
+ return $this->getInstanceByUUID($resp['uuid']);
422
}
423
424
/**
0 commit comments