-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] 增加群待办相关事件 #2723
Open
cssxsh
wants to merge
20
commits into
mamoe:dev
Choose a base branch
from
cssxsh:new_tip_event
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[core] 增加群待办相关事件 #2723
Changes from 15 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3b779b5
fix: honor event
cssxsh 77ec3eb
fix: honor event
cssxsh 16d3233
feat: MemberTemperatureTitleChangeEvent
cssxsh f467df4
feat: MemberReceivedEvent
cssxsh f2d09c7
fix: style
cssxsh b755f3d
add: api dump
cssxsh fd16f72
fix: docs
cssxsh 2b40cb5
feat: MemberLuckyWordEvent
cssxsh db214e8
fix: null handle
cssxsh 2403669
fix: null handle
cssxsh 0babe20
feat: MemberSetTodoEvent
cssxsh 1203a4c
fix: docs
cssxsh 8078c00
feat: MemberRecallTodoEvent
cssxsh 5dd6c17
feat: GroupTodo
cssxsh 0a75c04
add: api dump
cssxsh b7e2ddf
remove: println
cssxsh c38cdc2
add: check bot permission
cssxsh 60ecbe6
use: default timeout
cssxsh 315ee52
add: docs
cssxsh 58337b4
add: MockGroupTodoImpl
cssxsh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
60 changes: 60 additions & 0 deletions
60
mirai-core-api/src/commonMain/kotlin/contact/todo/GroupTodo.kt
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright 2019-2023 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. | ||
* | ||
* https://github.com/mamoe/mirai/blob/dev/LICENSE | ||
*/ | ||
|
||
package net.mamoe.mirai.contact.todo | ||
|
||
import me.him188.kotlin.jvm.blocking.bridge.JvmBlockingBridge | ||
import net.mamoe.mirai.event.events.MemberCompleteTodoEvent | ||
import net.mamoe.mirai.event.events.MemberRecallTodoEvent | ||
import net.mamoe.mirai.event.events.MemberSetTodoEvent | ||
import net.mamoe.mirai.message.data.MessageSource | ||
import net.mamoe.mirai.utils.NotStableForInheritance | ||
|
||
/** | ||
* 表示一个群待办管理. | ||
* | ||
* @since 2.16 | ||
*/ | ||
@NotStableForInheritance | ||
@JvmBlockingBridge | ||
public interface GroupTodo { | ||
|
||
public suspend fun status(): GroupTodoStatus | ||
|
||
public suspend fun current(): GroupTodoRecord? | ||
|
||
/** | ||
* @see MemberSetTodoEvent | ||
*/ | ||
public suspend fun set(source: MessageSource): GroupTodoRecord | ||
|
||
/** | ||
* @see MemberRecallTodoEvent | ||
*/ | ||
public suspend fun recall(source: MessageSource) | ||
|
||
/** | ||
* @see MemberRecallTodoEvent | ||
*/ | ||
public suspend fun recall(record: GroupTodoRecord) | ||
|
||
/** | ||
* @see MemberCompleteTodoEvent | ||
*/ | ||
public suspend fun complete(source: MessageSource) | ||
|
||
/** | ||
* @see MemberCompleteTodoEvent | ||
*/ | ||
public suspend fun complete(record: GroupTodoRecord) | ||
|
||
public suspend fun close(source: MessageSource) | ||
|
||
public suspend fun close(record: GroupTodoRecord) | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改名叫 remove?