mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Simplify constructor
This commit is contained in:
parent
3cc5cbfcfd
commit
bd3e73ae42
@ -40,10 +40,7 @@ class MessageTooLargeException(
|
||||
*/
|
||||
@SinceMirai("0.33.0")
|
||||
class BotIsBeingMutedException(
|
||||
val target: Group,
|
||||
/**
|
||||
* 被禁言剩余时间
|
||||
* @see Group.botMuteRemaining
|
||||
*/
|
||||
val remainingMillis: Int
|
||||
) : RuntimeException()
|
||||
val target: Group
|
||||
) : RuntimeException("bot is being muted, remaining ${target.botMuteRemaining} seconds")
|
||||
|
||||
val BotIsBeingMutedException.botMuteRemaining: Int get() = target.botMuteRemaining
|
Loading…
Reference in New Issue
Block a user