Commit bd3e73ae authored by Him188's avatar Him188

Simplify constructor

parent 3cc5cbfc
......@@ -40,10 +40,7 @@ class MessageTooLargeException(
*/
@SinceMirai("0.33.0")
class BotIsBeingMutedException(
val target: Group,
/**
* 被禁言剩余时间
* @see Group.botMuteRemaining
*/
val remainingMillis: Int
) : RuntimeException()
\ No newline at end of file
val target: Group
) : RuntimeException("bot is being muted, remaining ${target.botMuteRemaining} seconds")
val BotIsBeingMutedException.botMuteRemaining: Int get() = target.botMuteRemaining
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment