Skip to content

Commit

Permalink
feat[onebot11]: complete delete friend params(block: Boolean)
Browse files Browse the repository at this point in the history
  • Loading branch information
RTAkland committed Nov 28, 2024
1 parent 43cff82 commit e21c77a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ internal data class DeleteFriendOut(
data class Params(
@SerializedName("user_id")
val userId: Long,
// 是否屏蔽用户
val block: Boolean
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,8 @@ class OneBotAction internal constructor(
* 该方法是Go-CQHTTP的API
* 用于删除好友操作
*/
suspend fun deleteFriend(userId: Long) {
this.send(DeleteFriendOut(DeleteFriendOut.Params(userId)))
suspend fun deleteFriend(userId: Long, block: Boolean = true) {
this.send(DeleteFriendOut(DeleteFriendOut.Params(userId, block)))
}

/**
Expand Down

0 comments on commit e21c77a

Please sign in to comment.