The timeout command comes with this function already, the command layout is /timeout [user] [duration] {reason}, the reason tag is however optional, and most people tend to not use it out of laziness, wanting to purge messages quickly or simply being unaware of the option.
Twitch could make the reason a required tag, but you'll see a ton of timeouts just use generic reasons or periods and no real reason.
The timeout command comes with this function already, the command layout is /timeout [user] [duration] {reason}, the reason tag is however optional, and most people tend to not use it out of laziness, wanting to purge messages quickly or simply being unaware of the option.
Twitch could make the reason a required tag, but you'll see a ton of timeouts just use generic reasons or periods and no real reason.