Skip to content

Commit

Permalink
Revert "fix YunYouJun#55"
Browse files Browse the repository at this point in the history
This reverts commit b7a0159.
  • Loading branch information
GeraltX committed Dec 19, 2022
1 parent b7a0159 commit 52d9ea4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
8 changes: 4 additions & 4 deletions src/mirai-api-http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,17 +286,17 @@ export class MiraiApiHttp {

/**
* 通过 messageId 获取一条被缓存的消息
* @param messageId 获取消息的 messageId
* @param id 获取消息的messageId
* @param target 好友 ID 或 群 ID
*/
async messageFromId(messageId: number, target: number) {
async messageFromId(id: number, target: number) {
const { data } = await this.axios.get<
Api.Params.RequestParams<{ messageId: number; target: number }>,
Api.Params.RequestParams<{ id: number; target: number }>,
AxiosResponse<Api.Response.MessageFromId>
>('/messageFromId', {
params: {
sessionKey: this.sessionKey,
messageId,
id,
target,
},
})
Expand Down

0 comments on commit 52d9ea4

Please sign in to comment.