To get the badge, use the Get Global Chat Badges and Get Channel Chat Badges APIs. Most badges have only 1 version, but some badges like subscriber badges offer different versions of the badge depending on how long the user has subscribed. There are many possible badge values, but here are few: TagĬontains metadata related to the chat badges in the badges tag.Ĭurrently, this tag contains metadata only for subscriber badges, to indicate the number of months the user has been a subscriber.Ĭomma-separated list of chat badges in the form, /. The following example shows the message that the Twitch IRC server sent after dallas permanently banned ronni from the chat room and removed all of ronni’s following are the tags that the message may include. The user was banned if the message doesn’t include the ban-duration tag. The ID of the user that was banned or put in a timeout. The ID of the channel where the messages were removed from. The tag contains the duration of the timeout, in seconds. The message includes this tag if the user was put in a timeout. Learn more following are the tags that the message may include. The Twitch IRC server sends this message after a bot or moderator removes all messages from the chat room or removes all messages for the specified user. Sent when someone sends your bot a whisper message. Sent when the bot joins a channel or sends a PRIVMSG message. Sent when events like someone subscribing to the channel occurs. Sent when the bot joins a channel or when the channel’s chat room settings change. Sent when a user posts a message to the chat room. Sent to indicate the outcome of an action like banning a user. Sent when the bot authenticates with the server. Sent when the bot removes a single message from the chat room. Sent when the bot or moderator removes all messages from the chat room or removes all messages for the specified user. If a tag is not documented here, it is not supported for third-party developer use. Tags are in the form: following are the commands that may include tags. You should only parse tags you recognize and ignore the others. Tags are optional metadata that Twitch attaches to an IRC message. The Twitch IRC server follows the IRCv3 Message Tag specification for including tags in messages. If you request the commands capability, you should always include the tags capability because the Twitch-specifc IRC commands aren’t typically useful on their own.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |