Skip to content

Commit 6b2cfbc

Browse files
committed
Add BaseChatMessage docstring
1 parent eeea80c commit 6b2cfbc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

twitchio/models/eventsub_.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,21 @@ def __repr__(self) -> str:
12731273

12741274

12751275
class BaseChatMessage(_ResponderEvent):
1276+
"""
1277+
Represents the base attributes of a chat message.
1278+
1279+
Attributes
1280+
----------
1281+
id: str
1282+
The ID of the message
1283+
text: str
1284+
The chat message in plain text.
1285+
broadcaster: PartialUser
1286+
The broadcaster whose room recieved the message.
1287+
fragments: list[ChatMessageFragment]
1288+
The chat message fragments.
1289+
"""
1290+
12761291
__slots__ = (
12771292
"broadcaster",
12781293
"fragments",

0 commit comments

Comments
 (0)