Cheatography
https://cheatography.com
Methods and properties found on the Tennu Client.
Tennu Subscriber Method .on() Parameters
message |
handler |
!command |
handler |
message1 message2 |
handler |
{message1: handler1, message2: handler2} |
Tennu Message Properties
ALL |
receiver |
Client |
ALL |
prefix |
string |
ALL |
command |
string |
ALL |
params |
[string] |
ALL |
tags |
object? |
MOST |
hostname |
{nickname, username, hostname} |
MOST |
nickname |
string |
MOST |
channel |
string |
PRIVMSG, NOTICE |
isQuery |
boolean |
PRIVMSG, NOTICE |
message |
string |
QUIT, JOIN |
reason |
string |
|
|
Tennu Output Methods
say |
message |
act |
action |
ctcp |
request[, ...args] |
join |
channel(s) |
part |
channel[, reason] |
quit |
[reason] |
nick |
new-nick |
mode |
target, plus, minus, inArgs |
who |
channel |
whois |
nickname |
userhost |
nickname |
raw |
params... |
rawf |
format, params... |
joining a single channel or whoising a single user returns a
Promise<Result<Info, FailMessage>, Error>.
|
|
Tennu Client Logger Methods
log |
(level, ...messages) |
debug |
(...messages) |
info |
(...messages) |
notice |
(...messages) |
warn |
(...messages) |
error |
(...messages) |
crit |
(...messages) |
alert |
(...messages) |
emerg |
(...messages) |
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Havvy