Skip to content

Commit

Permalink
fix: code error
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn authored Mar 23, 2024
1 parent 5d06c06 commit 25ad7ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export class Bot extends QQBot {
* @param message_id
*/
async recallPrivateMessage(user_id:string,message_id:string) {
const result = await this.request.delete(`/v2/users/${user_id}/messages/${message_id})
const result = await this.request.delete(`/v2/users/${user_id}/messages/${message_id}`)
return result.status === 200
}
/**
Expand All @@ -515,7 +515,7 @@ export class Bot extends QQBot {
* @param message_id
*/
async recallGroupMessage(group_id:string,message_id:string) {
const result = await this.request.delete(`/v2/groups/${group_id}/messages/${message_id})
const result = await this.request.delete(`/v2/groups/${group_id}/messages/${message_id}`)
return result.status === 200
}
/**
Expand Down

0 comments on commit 25ad7ee

Please sign in to comment.