IRCMessage
Inherits: RefCounted < Object
Represents a fully parsed raw IRC protocol message.
Description
Parses and encapsulates an active IRC protocol line into an isolated structure, splitting it into standardized tags, prefixes, commands, and parameters based on the RFC 1459 and IRCv3 specifications.
Tutorials
Properties
|
||
|
||
|
||
|
Methods
decode_base64_string(value: String) static |
|
encode_ctcp(command: String, params: String = "") static |
|
get_ctcp_command() const |
|
get_ctcp_params() const |
|
get_hostname() const |
|
get_nick() const |
|
get_numeric() const |
|
get_processed_tags() const |
|
get_tag_value(key: String) const |
|
get_username() const |
|
is_ctcp() const |
|
is_numeric() const |
|
parse_json_string(value: String) static |
Property Descriptions
There is currently no description for this property. Please help us by contributing one!
PackedStringArray params = PackedStringArray() 🔗
void set_params(value: PackedStringArray)
PackedStringArray get_params()
There is currently no description for this property. Please help us by contributing one!
Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.
There is currently no description for this property. Please help us by contributing one!
Dictionary tags = {} 🔗
void set_tags(value: Dictionary)
Dictionary get_tags()
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
String decode_base64_string(value: String) static 🔗
Decodes a base64 string retrieved from an IRCv3 payload or tag sequence. Returns the decoded string.
String encode_ctcp(command: String, params: String = "") static 🔗
Wraps a standard payload in CTCP (Client-to-Client Protocol) byte delimiters (\001) for extended IRC interactions such as ACTIONs.
String get_ctcp_command() const 🔗
Extracts the target CTCP command from the message parameter array if the transmission is a valid CTCP protocol request.
String get_ctcp_params() const 🔗
Extracts the payload body arguments supplied with a CTCP command.
Extracts the hostname portion from the origin client prefix wrapper.
Extracts the nickname portion from the origin client prefix wrapper.
Returns the numeric reply code from the IRC protocol command, or 0 if the command resolves to a character string.
Dictionary get_processed_tags() const 🔗
Returns the IRCv3 metadata tags embedded in the message parsed cleanly into a Godot Dictionary.
Variant get_tag_value(key: String) const 🔗
Retrieves the explicit variant value of a specific IRCv3 metadata tag natively by its dictionary key.
Extracts the username (ident) portion from the origin client prefix wrapper.
bool is_base64(value: String) static 🔗
Returns true if the provided string evaluates cleanly as a base64 encoded sequence array.
Returns true if the active payload is encapsulated correctly inside standard CTCP data byte markers.
bool is_json(value: String) static 🔗
Returns true if the provided string is capable of being processed flawlessly as a standard JSON payload format.
Returns true if the underlying command identity is a 3-digit numeric server reply.
IRCMessage parse(raw_message: String) static 🔗
Accepts a raw IRC sequence line via raw_message and converts it directly into a structurally sound IRCMessage object endpoint.
Variant parse_json_string(value: String) static 🔗
Attempts to parse a formatted JSON string retrieved directly from an IRCv3 data tag pipeline block natively.