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.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.NOTHING, is_duplicate: bool = False) None

Method generated by attrs for class Message.

author_id
channel_id
content
creation_time
guild_id
id
is_duplicate