Skip to content

Commit

Permalink
✨ version 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 20, 2023
1 parent f5b70ed commit e0e6235
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions nonebot/adapters/satori/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,14 @@ async def channel_delete(self, *, channel_id: str) -> None:
await self._request(request)

@API
async def user_channel_create(self, *, user_id: str) -> Channel:
async def user_channel_create(self, *, user_id: str, guild_id: Optional[str] = None) -> Channel:
data = {"user_id": user_id}
if guild_id is not None:
data["guild_id"] = guild_id
request = Request(
"POST",
self.info.api_base / "user.channel.create",
json={"user_id": user_id},
json=data,
)
return Channel.parse_obj(await self._request(request))

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-adapter-satori"
version = "0.6.1"
version = "0.6.2"
description = "Satori Protocol Adapter for Nonebot2"
authors = [
{name = "RF-Tar-Railt",email = "[email protected]"},
Expand Down

0 comments on commit e0e6235

Please sign in to comment.