Skip to content

Commit

Permalink
Add explicit clientpoke command, fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Murgeye committed Jul 8, 2021
1 parent db6fad4 commit b8adede
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TS3Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,16 @@ def clientinfo(self, client_id):
"""
return self._parse_resp_to_dict(self._send("clientinfo", ["clid=" + str(client_id)]))

def clientpoke(self, clid, msg):
"""
Pokes a client with a message.
:param clid: client_id of the client to poke
:param msg: Message to send.
:type clid: int
:type msg: str
"""
return self._parse_resp_to_dict(self._send("clientpoke", ["clid=" + str(clid), "msg=" + str(msg)]))

def _parse_resp(self, resp):
"""
Parses a response. Messages starting with notify... are handled as events and the connected
Expand Down

0 comments on commit b8adede

Please sign in to comment.