From 20e7f197e3982ce2e209e9904d7b774b6c287139 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Fri, 26 Jun 2020 23:41:55 +0530 Subject: [PATCH] api: Implement DELETE /realm/emoji/{emoji_name}. --- zulip/zulip/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index a7e95f5..94e4be0 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -867,6 +867,18 @@ class Client: files=[file_obj] ) + def delete_custom_emoji(self, emoji_name: str) -> Dict[str, Any]: + ''' + Example usage: + + >>> client.delete_custom_emoji("green_tick") + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='realm/emoji/{}'.format(emoji_name), + method='DELETE', + ) + def get_realm_filters(self) -> Dict[str, Any]: ''' Example usage: