diff --git a/src/Control/Actions/ChannelSendAction.php b/src/Control/Actions/ChannelSendAction.php index 721b20b..dd46b39 100644 --- a/src/Control/Actions/ChannelSendAction.php +++ b/src/Control/Actions/ChannelSendAction.php @@ -14,7 +14,7 @@ final class ChannelSendAction extends AbstractAction $this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']); $selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId'); - $dataResult = $this->ts->getInstance()->sendMessage(2, $cid, $body['message']); + $dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_CHANNEL, $cid, $body['message']); $this->flash->addMessage('success', $this->translator->trans('done')); return $response->withRedirect('/channels/' . $sid . '/' . $cid); diff --git a/src/Control/Actions/OnlineSendAction.php b/src/Control/Actions/OnlineSendAction.php index ed0c1f9..0c0d3a9 100644 --- a/src/Control/Actions/OnlineSendAction.php +++ b/src/Control/Actions/OnlineSendAction.php @@ -15,7 +15,7 @@ final class OnlineSendAction extends AbstractAction $this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']); $selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId'); - $dataResult = $this->ts->getInstance()->sendMessage(1, $clid, $body['message']); + $dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_CLIENT, $clid, $body['message']); $this->flash->addMessage('success', $this->translator->trans('done')); return $response->withRedirect('/online/' . $sid . '/' . $clid); diff --git a/src/Control/Actions/ServerSendAction.php b/src/Control/Actions/ServerSendAction.php index b4d2cab..eff1a52 100644 --- a/src/Control/Actions/ServerSendAction.php +++ b/src/Control/Actions/ServerSendAction.php @@ -13,7 +13,7 @@ final class ServerSendAction extends AbstractAction $this->ts->login($this->auth->getIdentity()['user'], $this->auth->getIdentity()['password']); $selectResult = $this->ts->getInstance()->selectServer($sid, 'serverId'); - $dataResult = $this->ts->getInstance()->sendMessage(3, $sid, $body['message']); + $dataResult = $this->ts->getInstance()->sendMessage(ts3admin::TextMessageTarget_SERVER, $sid, $body['message']); $this->flash->addMessage('success', $this->translator->trans('done')); return $response->withRedirect('/servers/' . $sid);