Skip to content
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

为MiraiGroup实现DeleteSupport #63

Closed
ForteScarlet opened this issue Aug 9, 2022 · 0 comments · Fixed by #66
Closed

为MiraiGroup实现DeleteSupport #63

ForteScarlet opened this issue Aug 9, 2022 · 0 comments · Fixed by #66
Labels
特性 新特性或新功能

Comments

@ForteScarlet
Copy link
Member

ForteScarlet commented Aug 9, 2022

通过为 MiraiGroup 实现 DeleteSupport ,来通过 delete 描述bot退群的行为。

val group: Group = ...

if (group is DeleteSupport) {
     group.delete()
}

// or 

if (group is MiraiGroup) {
    group.delete()
}

其次,为 Group 的标准API直接实现 DeleteSupport 将会列入讨论,参考并追踪 simple-robot/simpler-robot#422

@ForteScarlet ForteScarlet added the 特性 新特性或新功能 label Aug 9, 2022
@ForteScarlet ForteScarlet added this to the v3.0.0.0-beta-M2 milestone Aug 9, 2022
@ForteScarlet ForteScarlet linked a pull request Aug 10, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
特性 新特性或新功能
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant