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 52d9ea4 commit d0d00f2
Showing 1 changed file with 4 additions and 4 deletions.
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 d0d00f2

Please sign in to comment.