-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #851 from simple-robot/fix-support
修复部分面向Java未被正确隐藏/转化的挂起函数
- Loading branch information
Showing
4 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Project https://github.com/simple-robot/simpler-robot | ||
* Email [email protected] | ||
* | ||
* This file is part of the Simple Robot Library. | ||
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
|
@@ -27,6 +27,7 @@ import love.forte.simbot.ability.DeleteFailureException | |
import love.forte.simbot.ability.DeleteOption | ||
import love.forte.simbot.ability.DeleteSupport | ||
import love.forte.simbot.common.id.ID | ||
import kotlin.jvm.JvmSynthetic | ||
|
||
|
||
/** | ||
|
@@ -81,6 +82,7 @@ public interface MessageContent : DeleteSupport { | |
* @throws DeleteFailureException 删除行为失败 | ||
* @throws NoSuchElementException 没有可删除目标 | ||
*/ | ||
@JvmSynthetic | ||
override suspend fun delete(vararg options: DeleteOption) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Project https://github.com/simple-robot/simpler-robot | ||
* Email [email protected] | ||
* | ||
* This file is part of the Simple Robot Library. | ||
* This file is part of the Simple Robot Library (Alias: simple-robot, simbot, etc.). | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
|
@@ -28,6 +28,7 @@ import love.forte.simbot.ability.DeleteSupport | |
import love.forte.simbot.ability.SendSupport | ||
import love.forte.simbot.ability.StandardDeleteOption | ||
import love.forte.simbot.common.id.ID | ||
import love.forte.simbot.suspendrunner.ST | ||
import kotlin.jvm.JvmSynthetic | ||
|
||
|
||
|
@@ -114,6 +115,7 @@ public abstract class AggregatedMessageReceipt : StandardMessageReceipt, Iterabl | |
* | ||
* @see deleteAll | ||
*/ | ||
@JvmSynthetic | ||
override suspend fun delete(vararg options: DeleteOption) { | ||
deleteAll(options = options) | ||
} | ||
|
@@ -128,6 +130,7 @@ public abstract class AggregatedMessageReceipt : StandardMessageReceipt, Iterabl | |
* | ||
* @return 删除成功的数量 | ||
*/ | ||
@ST | ||
public open suspend fun deleteAll(vararg options: DeleteOption): Int { | ||
var count = 0 | ||
for (receipt in this) { | ||
|