Guild Reference

You should not be creating this object yourself. It is just useful to understand how they work for say, plugin development.

Internally the guild object wraps a couple layers of data to handle custom options as well as providing an O(1) way of storing Members.

class antispam.dataclasses.guild.Guild(id: int, options: antispam.dataclasses.options.Options = _Nothing.NOTHING, log_channel_id: Optional[int] = None, members: Dict[int, antispam.dataclasses.member.Member] = _Nothing.NOTHING, messages: List[antispam.dataclasses.message.Message] = _Nothing.NOTHING, addons: Dict[str, Any] = _Nothing.NOTHING)

A simplistic dataclass representing a Guild

__init__(id: int, options: antispam.dataclasses.options.Options = _Nothing.NOTHING, log_channel_id: Optional[int] = None, members: Dict[int, antispam.dataclasses.member.Member] = _Nothing.NOTHING, messages: List[antispam.dataclasses.message.Message] = _Nothing.NOTHING, addons: Dict[str, Any] = _Nothing.NOTHING) None

Method generated by attrs for class Guild.

addons
id
log_channel_id
members
messages
options