10.6.23. Class cerebro.events.EventChangingOfMessages

class cerebro.events.EventChangingOfMessages(event_type, event_id)[source]

Bases: cerebro.events.Event

The base class for the message properties change event (as for a single message so for several messages at once). It grants access to the data of the modified messages before writing it into the database.

Note

Several messages may undergo one and the same properties change, and in this case only one event is generated.

Methods

messages()[source]
Returns:a list of the messages being modified by the user.
Return type:list(cerebro.aclasses.Message,)