Skip to content

Commit

Permalink
chore: silence周りのメソッドを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Oct 29, 2023
1 parent 5026014 commit 7364dcf
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions mipac/actions/admins/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,6 @@ async def unsuspend_user(self, user_id: str) -> bool:
)
)

async def unsilence_user(self, user_id: str) -> bool:
"""Unsilence user with specified Id
Parameters
----------
user_id : str
Id of user to unsilence
Returns
-------
bool
success or failed
"""

return bool(
await self.__session.request(
Route("POST", "/api/admin/unsilence-user"), json={"userId": user_id}, auth=True
)
)

async def suspend_user(self, user_id: str) -> bool:
"""
Suspends the user for the specified Id
Expand All @@ -144,25 +124,6 @@ async def suspend_user(self, user_id: str) -> bool:
)
)

async def silence_user(self, user_id: str) -> bool:
"""Silences the user of the specified Id
Parameters
----------
user_id : str
Id of user to silence
Returns
-------
bool
success or failed
"""
return bool(
await self.__session.request(
Route("POST", "/api/admin/silence-user"), json={"userId": user_id}, auth=True
)
)

async def get_moderation_logs(
self,
limit: int = 10,
Expand Down

0 comments on commit 7364dcf

Please sign in to comment.