The current plugin's IRCPluginState, via which to send messages to the server.
Channel to leave.
Optionally, reason behind leaving.
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; part(state, "#channel", "reason"); receive( (Message m) { with (m.event) { assert((type == IRCEvent.Type.PART), Enum!(IRCEvent.Type).toString(type)); assert((channel == "#channel"), channel); assert((content == "reason"), content); assert(m.properties == Message.Property.init); } } );
Leaves a channel.