The current plugin's IRCPluginState, via which to send messages to the server.
Channel from which to kick the user.
Nickname of user to kick.
Optionally the reason behind the kick.
Custom message properties, such as Message.Property.quiet and Message.Property.forced.
String name of the calling function, or something else that gives context.
IRCPluginState state; state.mainThread = thisTid; kick(state, "#channel", "kameloso", "content"); receive( (Message m) { with (m.event) { assert((type == IRCEvent.Type.KICK), Enum!(IRCEvent.Type).toString(type)); assert((channel == "#channel"), channel); assert((content == "content"), content); assert((target.nickname == "kameloso"), target.nickname); assert(m.properties == Message.Property.init); } } );
Kicks a user from a channel.