You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After like half an hour debugging, I realize those aren't actually flags.
Can we make them flags, so they are combinable? Or is the plan like "add the existing processor classes and subscribe to the events you want to process"?
The text was updated successfully, but these errors were encountered:
I had originally designed the system to have one processor per event, hence the lack of flags support. However you raise a good point, I think this would be a good addition to the event system. I'll aim to start working on this some time next week, the event system was due an update anyway I guess.
I was unable to make the EventType enumeration support flags, so we're just going to have to put up with using an array of EventTypes instead. Besides that minor issue, everything else has been implemented as requested.
So I wanted to create my own processor that reacts to MessagePosted and MessageEdited, so I put this at the top:
public override EventType Event { get; } = EventType.MessagePosted | EventType.MessageEdited;
After like half an hour debugging, I realize those aren't actually flags.
Can we make them flags, so they are combinable? Or is the plan like "add the existing processor classes and subscribe to the events you want to process"?
The text was updated successfully, but these errors were encountered: