💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
"automod"
for the "msg_rejected"
and "msg_rejected_mandatory"
msg-id
's. #273
client.on("automod", (channel, msgID, message) => {});
The msgID
of "msg_rejected"
means the message was caught by Automod but may still be accepted by a human. "msg_rejected_mandatory"
means the message was automatically rejected due to moderation settings.OPEN
instead of not CLOSING
and not CLOSED
. #338"Cannot send anonymous messages."
but still rejecting with "Not connected to server."
for disconnected clients.
const client = new tmi.Client();
client.say("twitch", "Hello world.")
.catch(console.error); // Logs "Not connected to server."
client.connect()
.then(() => client.say("twitch", "Hello world."))
.catch(console.error); // Logs "Cannot send anonymous messages."
channels
option to use the .join
method instead of directly sending a raw message. Errors are sent to the logger.badge-info
tag like badges
. This offers some information about certain badges in the badges
tag.
{ "badge-info": { subscriber: "21" }, badges: { subscriber: "12" } }
"\\s"
, "\\:"
, "\\n"
, and "\\r"
with " "
, ";"
, ""
(empty), and ""
(empty) respectively.
"Channel\\sSubscription\\s(Schmoopiie)" // Input
"Channel Subscription (Schmoopiie)" // Output
client.on("primepaidupgrade", (channel, username, methods, userstate) => {});
extra-utils
from the library. This wasn't documented nor recommended and would be better supplied by userland anyway..join()
command's callbacks to register incorrectly. (#342)