@@ -107,6 +107,11 @@ async def update_user_partial(self, update):
107107 async def delete_user (self , user_id , ** options ):
108108 return await self .delete (f"users/{ user_id } " , options )
109109
110+ async def delete_users (self , user_ids , delete_type , ** options ):
111+ return await self .post (
112+ "users/delete" , data = dict (options , user = delete_type , user_ids = user_ids )
113+ )
114+
110115 async def deactivate_user (self , user_id , ** options ):
111116 return await self .post (f"users/{ user_id } /deactivate" , data = options )
112117
@@ -236,6 +241,9 @@ def channel(self, channel_type, channel_id=None, data=None):
236241 """
237242 return Channel (self , channel_type , channel_id , data )
238243
244+ async def delete_channels (self , cids , ** options ):
245+ return await self .post (f"channels/delete" , data = dict (options , cids = cids ))
246+
239247 async def list_commands (self ):
240248 return await self .get ("commands" )
241249
@@ -650,3 +658,6 @@ async def __aexit__(
650658 exc_tb : Optional [TracebackType ],
651659 ) -> None :
652660 await self .close ()
661+
662+ async def get_task (self , task_id ):
663+ return await self .get (f"tasks/{ task_id } " )
0 commit comments