Assigns the name of the channel.
Compares two Channels by name.
Compares the name of the channel to a string.
Returns the name of the channel.
import std.format : format; Channel c; c = "#test"; assert((c.toString() == "#test"), c.name); Channel c2; c2.name = "#test2"; assert(c != c2); c2.name = c.name; assert(c == c2.name); version(TwitchSupport) { c.id = 12345L; assert(c != c2); } immutable s = format("%s", c2); assert((s == c2.name), s);
Represents a channel in terms of name and, if version TwitchSupport is declared, also a string ID.