The current plugin's IRCPluginState, via which to send messages to the server.
Channel to change the modes of.
Mode characters to apply to the channel.
Target of mode change, if applicable.
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; mode(state, "#channel", "+o", "content"); receive( (Message m) { with (m.event) { assert((type == IRCEvent.Type.MODE), Enum!(IRCEvent.Type).toString(type)); assert((channel == "#channel"), channel); assert((content == "content"), content); assert((aux[0] == "+o"), aux[0]); assert(m.properties == Message.Property.init); } } );
Sets a channel mode.
This includes modes that pertain to a user in the context of a channel, like bans.