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.NOTHING, internal_is_in_guild: bool = True, messages: List[antispam.dataclasses.message.Message] = _Nothing.NOTHING, addons: Dict[str, Any] = _Nothing.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.NOTHING, internal_is_in_guild: bool = True, messages: List[antispam.dataclasses.message.Message] = _Nothing.NOTHING, addons: Dict[str, Any] = _Nothing.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