irc v0.1.0 Irc.Message.Command View Source

A simple type representing the finite set of valid command and reply codes

This type essentially functions as an Enumeration, so while it is technically just an atom, only a specific set of atoms are considered valid, and attempting to use invalid values will result in an InvalidIrcMessageError.

Link to this section Summary

Functions

Attempts to convert the given string into a Command

Converts the Command into its string representation

Link to this section Types

Link to this section Functions

Attempts to convert the given string into a Command

Converts the Command into its string representation

Note: passing an invalid C ommand will raise an error