Message Reference¶
You should not be creating this object yourself. It is just useful to understand how they work for say, plugin development.
Internally the Message object just takes a few attributes
from discord.Message
and stores them in a smaller object
to save on memory. It also maintains a is_duplicate
bool
for internal reasons.
-
class
antispam.dataclasses.message.
Message
(id: int, channel_id: int, guild_id: int, author_id: int, content: str, creation_time: datetime.datetime = NOTHING, is_duplicate: bool = False)¶ A simplistic dataclass representing a Message
-
__init__
(id: int, channel_id: int, guild_id: int, author_id: int, content: str, creation_time: datetime.datetime = NOTHING, is_duplicate: bool = False) → None¶ Method generated by attrs for class Message.
-
channel_id
¶
-
content
¶
-
creation_time
¶
-
guild_id
¶
-
id
¶
-
is_duplicate
¶
-