Skip to content

Commit 20e7f19

Browse files
akashaviatortimabbott
authored andcommitted
api: Implement DELETE /realm/emoji/{emoji_name}.
1 parent 396ef1d commit 20e7f19

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zulip/zulip/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,18 @@ def upload_custom_emoji(self, emoji_name: str, file_obj: IO[Any]) -> Dict[str, A
867867
files=[file_obj]
868868
)
869869

870+
def delete_custom_emoji(self, emoji_name: str) -> Dict[str, Any]:
871+
'''
872+
Example usage:
873+
874+
>>> client.delete_custom_emoji("green_tick")
875+
{'result': 'success', 'msg': ''}
876+
'''
877+
return self.call_endpoint(
878+
url='realm/emoji/{}'.format(emoji_name),
879+
method='DELETE',
880+
)
881+
870882
def get_realm_filters(self) -> Dict[str, Any]:
871883
'''
872884
Example usage:

0 commit comments

Comments
 (0)