Skip to content

Commit 94b4ed3

Browse files
authored
Merge pull request #1 from Swapy97/patch-1
#createInstance "backend" option added.
2 parents fdf6da0 + 307424f commit 94b4ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sinusbot.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,8 @@ public function selectInstance($instanceUUID) {
16771677
* @param string $nickname Nickname
16781678
* @return array status
16791679
*/
1680-
public function createInstance($nickname = "TS3index.com MusicBot") {
1681-
return $this->request('/bot/instances', 'POST', json_encode(array("nick" => $nickname)));
1680+
public function createInstance($nickname = "TS3index.com MusicBot", $backend = "ts3") {
1681+
return $this->request('/bot/instances', 'POST', json_encode(array("backend" => $backend, "nick" => $nickname)));
16821682
}
16831683

16841684

0 commit comments

Comments
 (0)