@@ -30,6 +30,12 @@ async def get_community_members(
3030 community_id
3131 )
3232
33+ async def create_community (self : "swibots.ApiClient" , community : Community ):
34+ """Create a community
35+ community: Community
36+ """
37+ return await self .community_service .communities .create_community (community )
38+
3339 async def get_community (
3440 self : "swibots.ApiClient" , id : str = "" , username : str = ""
3541 ) -> Community :
@@ -189,7 +195,9 @@ async def check_messaging_enabled(
189195 return
190196 return result [0 ].enabled
191197
192- async def update_community (self : "swibots.ApiClient" , community : Community ) -> Community :
198+ async def update_community (
199+ self : "swibots.ApiClient" , community : Community
200+ ) -> Community :
193201 """Update community
194202
195203 Args:
@@ -198,12 +206,17 @@ async def update_community(self: "swibots.ApiClient", community: Community) -> C
198206 Returns:
199207 Community: new community response
200208 """
201- return await self .community_service .communities .update_community (community = community )
209+ return await self .community_service .communities .update_community (
210+ community = community
211+ )
202212
203- async def add_premium_member (self : "swibots.ApiClient" , user_id : int ,
204- community_id : str ,
205- channel_id : str = None ,
206- group_id : str = None ):
213+ async def add_premium_member (
214+ self : "swibots.ApiClient" ,
215+ user_id : int ,
216+ community_id : str ,
217+ channel_id : str = None ,
218+ group_id : str = None ,
219+ ):
207220 """Add premium member to the community
208221
209222 Args:
@@ -219,13 +232,16 @@ async def add_premium_member(self: "swibots.ApiClient", user_id: int,
219232 user_id = user_id ,
220233 community_id = community_id ,
221234 channel_id = channel_id ,
222- group_id = group_id
235+ group_id = group_id ,
223236 )
224237
225- async def delete_premium_member (self : "swibots.ApiClient" , user_id : int ,
226- community_id : str ,
227- channel_id : str = None ,
228- group_id : str = None ):
238+ async def delete_premium_member (
239+ self : "swibots.ApiClient" ,
240+ user_id : int ,
241+ community_id : str ,
242+ channel_id : str = None ,
243+ group_id : str = None ,
244+ ):
229245 """Remove premium member to the community
230246
231247 Args:
@@ -241,13 +257,16 @@ async def delete_premium_member(self: "swibots.ApiClient", user_id: int,
241257 user_id = user_id ,
242258 community_id = community_id ,
243259 channel_id = channel_id ,
244- group_id = group_id
260+ group_id = group_id ,
245261 )
246262
247- async def get_premium_members (self : "swibots.ApiClient" , user_id : int ,
248- community_id : str ,
249- channel_id : str = None ,
250- group_id : str = None ):
263+ async def get_premium_members (
264+ self : "swibots.ApiClient" ,
265+ user_id : int ,
266+ community_id : str ,
267+ channel_id : str = None ,
268+ group_id : str = None ,
269+ ):
251270 """Get all premium members in the community
252271
253272 Args:
@@ -260,5 +279,5 @@ async def get_premium_members(self: "swibots.ApiClient", user_id: int,
260279 user_id = user_id ,
261280 community_id = community_id ,
262281 channel_id = channel_id ,
263- group_id = group_id
264- )
282+ group_id = group_id ,
283+ )
0 commit comments