mute

open suspend override fun mute(time: Long, timeUnit: TimeUnit): Boolean
open suspend fun mute(time: Long, timeUnit: TimeUnit, type: Int): Boolean
open suspend override fun mute(duration: Duration): Boolean

对此用户进行静音操作。 默认情况下,mute 代表使用类型 1: 麦克风静音。

See also

Throws

如果持续时间小于0


open suspend fun mute(duration: Duration, type: Int): Boolean
abstract suspend fun mute(durationMillis: Long, type: Int = GuildMuteType.TYPE_MICROPHONE): Boolean

对此用户进行静音操作。

See also

Throws

如果持续时间小于0