10.6.22. Class cerebro.events.EventChangingOfAttachments¶
-
class
cerebro.events.
EventChangingOfAttachments
(event_type, event_id)[source]¶ Bases:
cerebro.events.Event
The base class for the attachment properties change event (as for a single attachment so for several attachments at once). It grants access to the data of the modified attachments before writing it into the database.
Note
Several attachments may undergo one and the same properties change, and in this case only one event is generated.
Methods
-
attachments
()[source]¶ Returns: a list of the attachments being modified by the user. Return type: list((attach_id, cerebro.aclasses.Message
),)
-