struct

FastIRC::Message

Inherits Struct / Value / Object

An IRC message containing command, parameters, prefix and IRCv3 tags.

To parse a line of IRC, see FastIRC.parse or FastIRC.parse_line.

Constructors

new(command : String, params : Nil | Array(String), *, prefix : FastIRC::Prefix | Nil = nil, tags : Nil | Hash(String, Nil | String) = nil)
m = FastIRC::Message.new("PRIVMSG", ["#WAMM", "testing message"])
m.to_s # => "PRIVMSG #WAMM :testing message\r\n"
Source

Instance methods

command
Source
inspect(io)
Source
params
Source
params?
Source
prefix

See Prefix

Source
tags

IRCv3 tags

Source
tags?

ditto

Source
to_s(io)

Converts the message back into a raw IRC message, including trailing "\r\n".

Source