The current plugin's IRCPluginState, via which to send messages to the server.
Channel to which to invite the user.
Nickname of user to invite.
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; invite(state, "#channel", "kameloso"); immutable m = state.outgoingMessages.data[0]; with (m.event) { assert((type == IRCEvent.Type.INVITE), Enum!(IRCEvent.Type).toString(type)); assert((channel == "#channel"), channel); assert((target.nickname == "kameloso"), target.nickname); assert(m.properties == Message.Property.init); }
Invites a user to a channel.