We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82cefb commit f99a855Copy full SHA for f99a855
pythorhead/community.py
@@ -234,4 +234,25 @@ def ban_user(
234
banFromCommunity["remove_data"] = remove_data
235
236
return self._requestor.api(Request.POST, "/community/ban_user", json=banFromCommunity)
237
+
238
+ def hide(
239
+ self,
240
+ community_id: int,
241
+ reason: Optional[str] = None,
242
+ hidden: bool = False,
243
+ ) -> Optional[dict]:
244
+ """
245
+ Hide a communtiy from public / "All" view (Admin only)
246
247
+ Args:
248
+ community ID(int)
249
+ reason (str, optional): Defaults to None
250
+ hidden (bool): Defaults to False
251
252
+ Returns:
253
+ Optional[dict]:
254
255
+ params: dict[str, Any] = {key: value for key, value in locals().items() if value is not None and key != "self"}
256
+ return self._requestor.api(Request.PUT, "/community/hide", json=params)
257
258
0 commit comments