mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 23:00:14 +08:00
Fix naming issue
This commit is contained in:
parent
3dafb8ea90
commit
a604083e9a
@ -93,7 +93,7 @@ internal class GroupImpl(
|
||||
@OptIn(MiraiExperimentalAPI::class)
|
||||
override lateinit var botPermission: MemberPermission
|
||||
|
||||
var _botMuteTimestamp: Int = groupInfo.botMuteRemaining
|
||||
var _botMuteTimestamp: Int = groupInfo.botMuteTimestamp
|
||||
|
||||
override val botMuteRemaining: Int =
|
||||
if (_botMuteTimestamp == 0 || _botMuteTimestamp == 0xFFFFFFFF.toInt()) {
|
||||
|
@ -44,7 +44,7 @@ internal class GroupInfoImpl(
|
||||
override val autoApprove get() = delegate.groupFlagext3?.and(0x00100000) == 0
|
||||
override val confessTalk get() = delegate.groupFlagext3?.and(0x00002000) == 0
|
||||
override val muteAll: Boolean get() = delegate.shutupTimestamp != 0
|
||||
override val botMuteRemaining: Int get() = delegate.shutupTimestampMe ?: 0
|
||||
override val botMuteTimestamp: Int get() = delegate.shutupTimestampMe ?: 0
|
||||
}
|
||||
|
||||
internal class TroopManagement {
|
||||
|
@ -63,7 +63,7 @@ interface GroupInfo {
|
||||
/**
|
||||
* 机器人被禁言还剩时间, 秒.
|
||||
*/
|
||||
val botMuteRemaining: Int
|
||||
val botMuteTimestamp: Int
|
||||
|
||||
/*
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user