aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 270f424..1b6919d 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3398,7 +3398,7 @@ def command_away(data, current_buffer, args):
/slack away
"""
team = EVENTROUTER.weechat_controller.buffers[current_buffer].team
- s = SlackRequest(team.token, "presence.set", {"presence": "away"}, team_hash=team.team_hash)
+ s = SlackRequest(team.token, "users.setPresence", {"presence": "away"}, team_hash=team.team_hash)
EVENTROUTER.receive(s)
@@ -3430,7 +3430,7 @@ def command_back(data, current_buffer, args):
/slack back
"""
team = EVENTROUTER.weechat_controller.buffers[current_buffer].team
- s = SlackRequest(team.token, "presence.set", {"presence": "active"}, team_hash=team.team_hash)
+ s = SlackRequest(team.token, "users.setPresence", {"presence": "auto"}, team_hash=team.team_hash)
EVENTROUTER.receive(s)