Skip to content

Commit 0bf9edb

Browse files
committed
document Message without using properties
1 parent fb49efe commit 0bf9edb

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

twitchio/message.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232

3333

3434
class Message:
35+
"""
36+
Attributes
37+
-----------
38+
content: :class:`str
39+
The content of this message.
40+
echo: :class:`bool`
41+
Boolean representing if this is a self-message or not.
42+
43+
"""
3544

3645
__slots__ = (
3746
"_raw_data",
@@ -74,16 +83,6 @@ def channel(self) -> "Channel":
7483
"""The Channel object associated with the Message."""
7584
return self._channel
7685

77-
@property
78-
def content(self) -> str:
79-
"""The parsed raw_data received from Twitch for this Message."""
80-
return self.content
81-
82-
@property
83-
def echo(self) -> bool:
84-
"""Boolean representing if this is a self-message or not."""
85-
return self.echo
86-
8786
@property
8887
def raw_data(self) -> str:
8988
"""The raw data received from Twitch for this Message."""

0 commit comments

Comments
 (0)