pub fn timeout_user(&mut self, user: &str, time: u16) -> Result<(), MixerError> {
		let arguments = vec! [ user.to_string(), time.to_string() ];

		let packet = ArgumentPacket {
			packet_type: PacketType::Method,
			method: MethodType::Timeout,
			arguments,
			id: self.packet_id
		};
		let packet = OwnedMessage::Text(serde_json::to_string(&packet).unwrap());
		self.send_packet(packet)?;

		Ok(())
	}
// Timeout a given user from chat for the provided time.

Timeout a given user from chat for the provided time.
Timeout a given user from chat for the provided time .
pub fn timeout_user(&mut self, user: &str, time: u16) -> Result<(), MixerError> {
		let arguments = vec! [ user.to_string(), time.to_string() ];
		let packet = ArgumentPacket {
			packet_type: PacketType::Method,
			method: MethodType::Timeout,
			arguments,
			id: self.packet_id
		};
		let packet = OwnedMessage::Text(serde_json::to_string(&packet).unwrap());
		self.send_packet(packet)?;
		Ok(())
	}
pub fn timeout_user ( & mut self , user : & str , time : u16 ) -> Result < ( ) , MixerError > { let arguments = vec ! [ user to_string ( ) time to_string ( ) ] ; let packet = ArgumentPacket { packet_type : PacketType :: Method , method : MethodType :: Timeout , arguments , id : self . packet_id } ; let packet = OwnedMessage :: Text ( serde_json :: to_string ( & packet ) . unwrap ( ) ) ; self . send_packet ( packet ) ? ; Ok ( ( ) ) }
Timeout a given user from chat for the provided time.
Timeout a given user from chat for the provided time .
&mut self
user
&str
time
u16
&mut self
user
&str
time
u16