The current plugin's IRCPluginState, via which to send messages to the server.
Channel whose topic to change.
Topic body text.
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; topic(state, "#channel", "content"); immutable m = state.outgoingMessages.data[0]; with (m.event) { assert((type == IRCEvent.Type.TOPIC), Enum!(IRCEvent.Type).toString(type)); assert((channel == "#channel"), channel); assert((content == "content"), content); assert(m.properties == Message.Property.init); }
Sets the topic of a channel.