pytwitcherapi.chat.message.Message3¶
-
class
pytwitcherapi.chat.message.Message3(source, target, text, tags=None)[source]¶ Bases:
pytwitcherapi.chat.message.MessageA message which stores information from irc v3 tags
-
__init__(source, target, text, tags=None)[source]¶ Initialize a new message from source to target with the given text
Parameters: Raises: None
Methods
__init__(source, target, text[, tags])Initialize a new message from source to target with the given text from_event(event)Create a message from an event set_tags(tags)For every known tag, set the appropriate attribute. Attributes
emotesReturn the emotes subscriberReturn whether the message was sent from a subscriber turboReturn whether the message was sent from a turbo user -
color= None¶ the hex representation of the user color
-
user_type= None¶ Turbo type. None for regular ones. Other user types are mod, global_mod, staff, admin.
-
classmethod
from_event(event)[source]¶ Create a message from an event
Parameters: event ( Event3) – the event that was received of typepubmsgorprivmsgReturns: a message that resembles the event Return type: Message3Raises: None
For every known tag, set the appropriate attribute.
Known tags are:
color: The user color emotes: A list of emotes subscriber: True, if subscriber turbo: True, if turbo user user_type: None, mod, staff, global_mod, admin Parameters: tags ( listofTag| None) – a list of tagsReturns: None Return type: None Raises: None
-
emotes¶ Return the emotes
Returns: the emotes Return type: listRaises: None
-