diff --git a/mirai-core-api/src/commonMain/kotlin/contact/Group.kt b/mirai-core-api/src/commonMain/kotlin/contact/Group.kt index 770042d7d..bc4f38421 100644 --- a/mirai-core-api/src/commonMain/kotlin/contact/Group.kt +++ b/mirai-core-api/src/commonMain/kotlin/contact/Group.kt @@ -1,5 +1,5 @@ /* - * Copyright 2019-2020 Mamoe Technologies and contributors. + * Copyright 2019-2021 Mamoe Technologies and contributors. * * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link. @@ -168,13 +168,13 @@ public interface Group : Contact, CoroutineScope { /** - * 将一条消息设置为群精华消息 - * 需要管理员或群主权限 + * 将一条消息设置为群精华消息, 需要管理员或群主权限. + * 操作成功返回 `true`. * - * @return 成功时返回true + * @throws PermissionDeniedException 没有权限时抛出 * - * @throws PermissionDeniedException 没有权限 - * */ + * @since 2.2 + */ @JvmBlockingBridge public suspend fun setEssenceMessage(source: MessageSource): Boolean