Skip to content

Commit

Permalink
fix: some
Browse files Browse the repository at this point in the history
Chenwe_i_lin committed Feb 26, 2020
1 parent 63c4774 commit f89d8df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mirai/protocol.py
Original file line number Diff line number Diff line change
@@ -165,15 +165,13 @@ async def unmuteAll(self, group: T.Union[Group, int]) -> bool:

async def memberInfo(self,
group: T.Union[Group, int],
member: T.Union[Member, int],
info: MemberChangeableSetting
member: T.Union[Member, int]
):
return MemberChangeableSetting.parse_obj(assertOperatorSuccess(
await fetch.http_get(f"{self.baseurl}/memberInfo", {
"sessionKey": self.session_key,
"target": self.handleTargetAsGroup(group),
"memberId": self.handleTargetAsMember(member),
"info": json.loads(info.json())
"memberId": self.handleTargetAsMember(member)
}
), raise_exception=True, return_as_is=True))

0 comments on commit f89d8df

Please sign in to comment.