Skip to content

Commit f18dcab

Browse files
Remove Message.__len__()
1 parent 1ac7092 commit f18dcab

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

discord/message.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,6 @@ class Message(Hashable):
503503
504504
Returns the message's hash.
505505
506-
.. describe:: len(x)
507-
508-
Returns the length of the message's content.
509506
510507
Attributes
511508
-----------
@@ -716,8 +713,6 @@ def __repr__(self) -> str:
716713
f'<{name} id={self.id} channel={self.channel!r} type={self.type!r} author={self.author!r} flags={self.flags!r}>'
717714
)
718715

719-
def __len__(self):
720-
return len(self.content)
721716

722717
def _try_patch(self, data, key, transform=None) -> None:
723718
try:

0 commit comments

Comments
 (0)