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