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: Options = NOTHING, log_channel_id: int | None = None, members: Dict[int, Member] = NOTHING, messages: List[Message] = NOTHING, addons: Dict[str, Any] = NOTHING)

A simplistic dataclass representing a Guild

__init__(id: int, options: Options = NOTHING, log_channel_id: int | None = None, members: Dict[int, Member] = NOTHING, messages: List[Message] = NOTHING, addons: Dict[str, Any] = NOTHING) None

Method generated by attrs for class Guild.

addons: Dict[str, Any]
id: int
log_channel_id: int
members: Dict[int, Member]
messages: List[Message]
options: Options