Support filtering events.Raw by update type

This commit is contained in:
Lonami Exo
2018-04-28 13:37:19 +02:00
parent 5c6ac18a52
commit ce7e5abb58
3 changed files with 31 additions and 12 deletions

View File

@@ -209,17 +209,6 @@ class EventCommon(abc.ABC):
return d
class Raw(EventBuilder):
"""
Represents a raw event. The event is the update itself.
"""
def resolve(self, client):
pass
def build(self, update):
return update
def name_inner_event(cls):
"""Decorator to rename cls.Event 'Event' as 'cls.Event'"""
if hasattr(cls, 'Event'):