From 16737e4ed3ecd9dc6b1b25f4566f3477ed96b089 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Mon, 20 Apr 2020 00:19:41 +0530 Subject: [PATCH] api: Add get_members wrapper for get_users for backwards compatibility. --- zulip/zulip/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 7a2f387..6b1eb56 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1143,6 +1143,13 @@ class Client: request=request, ) + def get_members(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: + # This exists for backwards-compatibility; we renamed this + # function get_users for consistency with the rest of the API. + # Later, we may want to add a warning for clients using this + # legacy name. + return self.get_users(request=request) + def get_alert_words(self) -> Dict[str, Any]: ''' See examples/alert-words for example usage.