Skip to content

Commit

Permalink
style: black
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoo1104 committed Oct 28, 2024
1 parent 94f13a1 commit 8a7219d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 12 additions & 4 deletions koreanbots/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ async def get_user_info(
code=code, version=version, data=KoreanbotsUserResponse.from_dict(data)
)

async def get_bot_info(self, bot_id: int) -> KoreanbotsResponse[KoreanbotsBotResponse]:
async def get_bot_info(
self, bot_id: int
) -> KoreanbotsResponse[KoreanbotsBotResponse]:
"""
봇 정보를 가져옵니다.
Expand Down Expand Up @@ -222,7 +224,9 @@ async def check_vote(
# deprecated since 3.0.0

async def guildcount(self, bot_id: int, **kwargs: Optional[int]) -> None:
warn("guildcount 메서드는 post_guild_count로 변경되었습니다.", DeprecationWarning)
warn(
"guildcount 메서드는 post_guild_count로 변경되었습니다.", DeprecationWarning
)

return await self.post_guild_count(bot_id, **kwargs)

Expand All @@ -241,7 +245,9 @@ async def botinfo(self, bot_id: int) -> KoreanbotsResponse[KoreanbotsBotResponse
async def serverinfo(
self, server_id: int
) -> KoreanbotsResponse[KoreanbotsServerResponse]:
warn("serverinfo 메서드는 get_server_info로 변경되었습니다.", DeprecationWarning)
warn(
"serverinfo 메서드는 get_server_info로 변경되었습니다.", DeprecationWarning
)

return await self.get_server_info(server_id)

Expand All @@ -268,6 +274,8 @@ async def is_voted_bot(
async def is_voted_server(
self, user_id: int, server_id: int
) -> KoreanbotsResponse[KoreanbotsVoteResponse]:
warn("is_voted_server 메서드는 check_vote로 변경되었습니다.", DeprecationWarning)
warn(
"is_voted_server 메서드는 check_vote로 변경되었습니다.", DeprecationWarning
)

return await self.check_vote("server", user_id, server_id)
1 change: 1 addition & 0 deletions koreanbots/integrations/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class DiscordpyKoreanbots(Koreanbots):
:type include_shard_count:
bool
"""

def __init__(
self,
client: Union["DiscordpyClient", "nextcord.Client", "DisnakeClient"],
Expand Down

0 comments on commit 8a7219d

Please sign in to comment.