Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GeraltX committed Dec 19, 2022
1 parent e48990d commit b7a0159
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

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 id 获取消息的messageId
* @param messageId 获取消息的 messageId
* @param target 好友 ID 或 群 ID
*/
async messageFromId(id: number, target: number) {
async messageFromId(messageId: number, target: number) {
const { data } = await this.axios.get<
Api.Params.RequestParams<{ id: number; target: number }>,
Api.Params.RequestParams<{ messageId: number; target: number }>,
AxiosResponse<Api.Response.MessageFromId>
>('/messageFromId', {
params: {
sessionKey: this.sessionKey,
id,
messageId,
target,
},
})
Expand Down

0 comments on commit b7a0159

Please sign in to comment.