Closed ForteScarlet closed 2 years ago
通过为 MiraiGroup 实现 DeleteSupport ,来通过 delete 描述bot退群的行为。
MiraiGroup
DeleteSupport
delete
val group: Group = ... if (group is DeleteSupport) { group.delete() } // or if (group is MiraiGroup) { group.delete() }
其次,为 Group 的标准API直接实现 DeleteSupport 将会列入讨论,参考并追踪 https://github.com/ForteScarlet/simpler-robot/issues/422
Group
通过为
MiraiGroup
实现DeleteSupport
,来通过delete
描述bot退群的行为。其次,为
Group
的标准API直接实现DeleteSupport
将会列入讨论,参考并追踪 https://github.com/ForteScarlet/simpler-robot/issues/422