Member Reference¶
You should not be creating this object yourself. It is just useful to understand how they work for say, plugin development.
Internally this object provides a way of storing Messages as well as maintaining the required data to track and punish spammers.
Please note, if you plan on working with any of the duplicate counter values you need to minus 1 in order to get the actual value. This is due to the fact the counter starts at 1 since we don’t mark the first message as spam due to some internal conflicts.
- class antispam.dataclasses.member.Member(id: int, guild_id: int, warn_count: int = 0, kick_count: int = 0, times_timed_out: int = 0, duplicate_counter: int = 1, duplicate_channel_counter_dict: Dict[int, int] = NOTHING, internal_is_in_guild: bool = True, messages: List[antispam.dataclasses.message.Message] = NOTHING, addons: Dict[str, Any] = NOTHING)¶
A simplistic dataclass representing a Member
- __init__(id: int, guild_id: int, warn_count: int = 0, kick_count: int = 0, times_timed_out: int = 0, duplicate_counter: int = 1, duplicate_channel_counter_dict: Dict[int, int] = NOTHING, internal_is_in_guild: bool = True, messages: List[antispam.dataclasses.message.Message] = NOTHING, addons: Dict[str, Any] = NOTHING) None ¶
Method generated by attrs for class Member.
- addons¶
- duplicate_channel_counter_dict¶
- duplicate_counter¶
- guild_id¶
- id¶
- internal_is_in_guild¶
- kick_count¶
- messages¶
- times_timed_out¶
- warn_count¶