[−][src]Function ttv_chat::commands::timeout
pub fn timeout<'a>(
channel: &'a str,
username: &'a str,
duration: impl Into<Option<&'a str>>,
reason: impl Into<Option<&'a str>>
) -> Timeout<'a>
Temporarily prevent a user from chatting.
- duration (optional, default=
10 minutes
) must be a positive integer. - time unit (optional, default=
s
) must be one of- s
- m
- h
- d
- w
- maximum duration is
2 weeks
.
Combinations like 1d2h
are also allowed.
Reason is optional and will be shown to the target user and other moderators.
Use untimeout to remove a timeout.