Add utility properties to CallMessage to query information.

This commit is contained in:
Rapptz
2016-07-15 23:42:53 -04:00
parent 1c8ab25917
commit bd39c3ef45
3 changed files with 39 additions and 11 deletions

View File

@ -185,7 +185,7 @@ class Message:
participants.append(user)
call['participants'] = participants
self.call = CallMessage(channel=self.channel, **call)
self.call = CallMessage(message=self, **call)
@utils.cached_slot_property('_raw_mentions')
def raw_mentions(self):