timeout

suspend fun Member.timeout(until: Duration, reason: String? = null): Member

Convenience function to time out a member using a Duration, skipping the edit DSL.


suspend fun Member.timeout(until: DateTimePeriod, timezone: TimeZone = TimeZone.UTC, reason: String? = null): Member

Convenience function to time out a member using a DateTimePeriod and timezone, skipping the edit DSL.

This will use TimeZone.UTC by default. You can provide another if you really need to.