From 729f778ef4238cd14b4b38840a3d7adfe53e6b45 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 26 Jan 2017 02:34:08 -0800 Subject: [PATCH] Add utility properties for MessageDeleteBulk --- disco/gateway/events.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/disco/gateway/events.py b/disco/gateway/events.py index f74431e..fe5c669 100644 --- a/disco/gateway/events.py +++ b/disco/gateway/events.py @@ -493,6 +493,14 @@ class MessageDeleteBulk(GatewayEvent): channel_id = Field(snowflake) ids = ListField(snowflake) + @property + def channel(self): + return self.client.state.channels.get(self.channel_id) + + @property + def guild(self): + return self.channel.guild + @wraps_model(Presence) class PresenceUpdate(GatewayEvent):