# API ## Lua Commands ### `raw(message)` Sends a raw message to the server. ### `privmsg(to, message)` Sends a message to a channel or user. ### `notice(to, message)` Sends a notice to a channel or user. ### `join(channel)` Joins a channel. ### `part(channel, reason)` Leaves a channel. ### `kick(channel, user, reason)` Kicks a user from a channel. Reason is optional. ### `mode(channel, mode, target)` Sets a mode on a channel. ### `ctcp(to, message)` Sends a CTCP message to a channel or user.