mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Ensure Message.call is None by default
`Message` has an attribute `call` which is claimed to have type `Optional[CallMessage]`. But `Message` doesn't actually ensure that `call` is initialized to a value in `__init__`. This commit fixes that inconsistency.
This commit is contained in:
parent
adae90400f
commit
af67256949
@ -504,6 +504,7 @@ class Message(Hashable):
|
||||
self.application = data.get('application')
|
||||
self.activity = data.get('activity')
|
||||
self.channel = channel
|
||||
self.call = None
|
||||
self._edited_timestamp = utils.parse_time(data['edited_timestamp'])
|
||||
self.type = try_enum(MessageType, data['type'])
|
||||
self.pinned = data['pinned']
|
||||
|
Loading…
x
Reference in New Issue
Block a user