MiraiGroup

Simbot中针对于 OriginalMiraiGroup 的群类型实现。

DeleteSupport

MiraiGroup 实现 DeleteSupport 来允许对bot退群的行为进行描述。更多参考 delete

Author

ForteScarlet

Functions

Link copied to clipboard
open suspend override fun child(id: ID): Organization?
Link copied to clipboard
open suspend override fun delete(): Boolean

bot退群。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getChild(id: ID): Organization?
Link copied to clipboard
Link copied to clipboard
open override fun getMember(id: ID): GroupMember?
Link copied to clipboard
open override fun getMemberAsync(id: ID): CompletableFuture<out GroupMember?>
Link copied to clipboard
abstract suspend override fun member(id: ID): MiraiMember?

根据ID获取指定成员信息。

Link copied to clipboard
abstract suspend override fun mute(duration: Duration): Boolean

尝试禁言这个群。(即开启全群禁言。)

open suspend fun mute(time: Long, timeUnit: TimeUnit): Boolean
Link copied to clipboard
open fun muteAsync(time: Long, timeUnit: TimeUnit): CompletableFuture<out Boolean>
Link copied to clipboard
abstract override fun muteBlocking(): Boolean
abstract override fun muteBlocking(duration: JavaDuration): Boolean

尝试禁言这个群。(即开启全群禁言。)

open fun muteBlocking(time: Long, timeUnit: TimeUnit): Boolean
Link copied to clipboard
abstract suspend override fun owner(): MiraiMember

群主信息。

Link copied to clipboard
open suspend override fun previous(): Organization?

群没有“上层”概念, 始终得到null。

Link copied to clipboard
abstract suspend override fun send(text: String): SimbotMiraiMessageReceipt<Group>
abstract suspend override fun send(message: Message): SimbotMiraiMessageReceipt<Group>
open suspend override fun send(message: MessageContent): SimbotMiraiMessageReceipt<Group>

向群内发送消息。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend override fun unmute(): Boolean

取消全群禁言。unmute 的同时会取消此群涉及到的由 mute 构建出来的延时任务。

Link copied to clipboard
open override fun unmuteAsync(): CompletableFuture<out Boolean>
Link copied to clipboard
open override fun unmuteBlocking(): Boolean

Properties

Link copied to clipboard
abstract val active: MiraiGroupActive

获取群活跃度信息。

Link copied to clipboard
abstract override val bot: MiraiGroupBot
Link copied to clipboard
open val category: Category?
Link copied to clipboard
open override val children: Items<Organization>
Link copied to clipboard
open override val createTime: Timestamp
Link copied to clipboard
open override val currentMember: Int
Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val icon: String
Link copied to clipboard
abstract override val id: LongID
Link copied to clipboard
open override val maximumMember: Int
Link copied to clipboard
abstract override val members: Items<MiraiMember>

获取群成员信息流。

Link copied to clipboard
open override val name: String
Link copied to clipboard
abstract override val originalContact: Group
Link copied to clipboard
open override val owner: GroupMember
Link copied to clipboard
open override val ownerAsync: CompletableFuture<out GroupMember>
Link copied to clipboard
abstract override val ownerId: LongID

群主ID。

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract override val roles: Items<MemberRole>

Mirai中,一个群内可能出现的权限是固定的。