From 483c35333b7cb5b23600beb82ad7a37ac0194ebd Mon Sep 17 00:00:00 2001 From: Eunwoo Choi Date: Mon, 28 Oct 2024 14:18:32 +0900 Subject: [PATCH] fix: wrong method used --- koreanbots/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koreanbots/client.py b/koreanbots/client.py index 177745a..a52bf3a 100644 --- a/koreanbots/client.py +++ b/koreanbots/client.py @@ -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"] @@ -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)