Skip to content

Commit

Permalink
fix: wrong method used
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Oct 28, 2024
1 parent 179bf4a commit 483c353
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions koreanbots/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def get_server_vote(
:rtype:
KoreanbotsVote
"""
data = await super().get_server_info(user_id, server_id)
data = await super().get_server_vote(user_id, server_id)

code = data["code"]
version = data["version"]
Expand Down Expand Up @@ -294,7 +294,8 @@ async def is_voted_server(
self, user_id: int, server_id: int
) -> KoreanbotsResponse[KoreanbotsVoteResponse]:
warn(
"is_voted_server 메서드는 get_server_vote로 변경되었습니다.", DeprecationWarning
"is_voted_server 메서드는 get_server_vote로 변경되었습니다.",
DeprecationWarning,
)

return await self.get_server_vote(user_id, server_id)

0 comments on commit 483c353

Please sign in to comment.