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, log_channel_id: Optional[int] = None, members: Dict[int, antispam.dataclasses.member.Member] = NOTHING, messages: List[antispam.dataclasses.message.Message] = NOTHING, addons: Dict[str, Any] = NOTHING)¶
A simplistic dataclass representing a Guild
- __init__(id: int, options: antispam.dataclasses.options.Options = NOTHING, log_channel_id: Optional[int] = None, members: Dict[int, antispam.dataclasses.member.Member] = NOTHING, messages: List[antispam.dataclasses.message.Message] = NOTHING, addons: Dict[str, Any] = NOTHING) None ¶
Method generated by attrs for class Guild.
- addons¶
- id¶
- log_channel_id¶
- members¶
- messages¶
- options¶