mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-02 21:42:25 +08:00
Deprecate Member.mute(Int) extension
This commit is contained in:
parent
e0b8bf687d
commit
16eaeac371
@ -246,4 +246,6 @@ public suspend inline fun Member.mute(duration: Duration) {
|
|||||||
/**
|
/**
|
||||||
* @see Member.mute
|
* @see Member.mute
|
||||||
*/
|
*/
|
||||||
|
@Deprecated("Convert duration to int manually.", ReplaceWith("this.mute(durationSeconds.toInt())"))
|
||||||
|
@PlannedRemoval("2.0-M2")
|
||||||
public suspend inline fun Member.mute(durationSeconds: Long): Unit = this.mute(durationSeconds.toInt())
|
public suspend inline fun Member.mute(durationSeconds: Long): Unit = this.mute(durationSeconds.toInt())
|
Loading…
Reference in New Issue
Block a user