Skip to content

Commit 23421de

Browse files
authored
Rename API method 'get_channels' to 'list_channels'
1 parent 8c93a76 commit 23421de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nonebot/adapters/console/adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def _call_api(self, bot: Bot, api: str, **data: Any):
8484
return await self._frontend.backend.get_channel(data["channel_id"])
8585
if api == "get_users":
8686
return await self._frontend.backend.list_users()
87-
if api == "get_channels":
87+
if api == "list_channels":
8888
return await self._frontend.backend.list_channels(data.get("list_users", False))
8989
if api == "create_dm":
9090
user = await self._frontend.backend.get_user(data["user_id"])

0 commit comments

Comments
 (0)