ReadonlynickOur current nickname (updated when a NICK change we make is echoed back).
Sends a CTCP ACTION (the /me command) to a target.
A channel or nick.
The action text (rendered as * nick text).
Resolves once the message is written.
Changes our nickname, resolving once the server echoes the NICK back.
(The current nick is exposed as the read-only IrcSession.nick property; this is the mutator, named separately since a property and a method cannot share one name.)
The new nickname.
Resolves once the change is confirmed.
Sends QUIT and closes the connection.
Optionalreason: string
An optional quit message.
Resolves once the socket is closed.
Joins a channel.
The channel name (e.g. #ops).
Optionalkey: string
The channel key/password, when it is +k protected.
Resolves once the JOIN is written.
Returns an async iterable of inbound chat messages (PRIVMSG/NOTICE), with CTCP parsed.
Each call returns an independent iterator that receives every message from the moment it is
created; breaking out of the for await releases it. The loop ends when the connection
closes.
An async iterable of IrcChatMessage.
Sends a NOTICE, splitting on newlines and chunking overly long lines.
A channel or nick.
The notice text.
Resolves once every line is written.
Leaves a channel.
The channel name.
Optionalreason: string
An optional part message.
Resolves once the PART is written.
Sends a PRIVMSG, splitting on newlines and chunking overly long lines.
A channel or nick.
The message text (may contain \n/\r\n; each line is sent separately).
Resolves once every line is written.
Sends a structured command, applying the trailing-parameter rule to the last argument.
The command (e.g. MODE).
The parameters.
Resolves once the line is written.
Sends a raw pre-formatted line (no CRLF; it is appended). The escape hatch for commands the typed API does not cover.
The line to send verbatim.
Resolves once the line is written.
Gets or sets a channel topic.
With text, sets the topic and resolves once the TOPIC is written. Without text,
queries the topic and resolves to it (empty string when unset).
The channel.
Optionaltext: string
The new topic to set, or omit to query.
The current topic when querying; nothing when setting.
Queries WHOIS for a target and returns the aggregated result.
The nick to query.
The structured WHOIS info (fields present depend on what the server returns).
A live IRC session bound to one TCP/TLS connection.
Obtain one from connect. A background pump reads the socket, answers
PINGs, and routes messages/events, so sending and receiving can be in flight at once. It is anAsyncDisposable, soawait usingcloses it cleanly (sendingQUITfirst).Since
1.0.4