Skip to main content

Module bot_events

Module bot_events 

Source
Expand description

Which events a bot gets (specification §8.13 “Events”): a manifest’s events names wire event types, groups of them, or *; some groups also need a capability.

Constants§

GROUPS
The groups a manifest may name, with their event types.

Functions§

allowed
Whether the capabilities allow events of kind: member events need members, presence needs presence, DM events need dms; everything else is visible to any member anyway.
group_of
The group an event type belongs to, if any.
known
Whether name is something a manifest’s events may list.
wants
Whether a bot subscribed to events (and holding caps) gets events of kind.