aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-08-24 17:06:19 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-08-25 19:42:06 +0200
commitf3209031ca93beab0ec91a6d2c72a6d28079ea10 (patch)
treecaf712753ed802153fe1db006a1371364309feee
parent21d0548b64672c84db8e364d7004912bf714fe28 (diff)
downloadwee-slack-f3209031ca93beab0ec91a6d2c72a6d28079ea10.tar.gz
Show handle when listing usergroup members
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 861a4ae..42ce328 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2771,7 +2771,7 @@ def handle_usergroupsuserslist(users_json, eventrouter, **kwargs):
team = eventrouter.teams[request_metadata.team_hash]
user_identifers = users_json['users']
- team.buffer_prnt("Users:")
+ team.buffer_prnt("Users in @{}:".format(request_metadata.usergroup_handle))
for user_identifier in user_identifers:
user = team.users[user_identifier]
team.buffer_prnt(" {:<25}({})".format(user.name, user.presence))
@@ -3776,7 +3776,7 @@ def command_usergroups(data, current_buffer, args):
if handle and handle in usergroups.keys():
subteam = team.subteams[usergroups[handle]]
- s = SlackRequest(team.token, "usergroups.users.list", { "usergroup": subteam.identifier }, team_hash=team.team_hash)
+ s = SlackRequest(team.token, "usergroups.users.list", { "usergroup": subteam.identifier }, team_hash=team.team_hash, usergroup_handle=handle)
EVENTROUTER.receive(s)
elif not handle:
team.buffer_prnt("Usergroups:")