diff options
| author | Rapptz <[email protected]> | 2016-07-15 22:11:56 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-07-15 22:11:56 -0400 |
| commit | 33eba31aac375aed2f9cd148177fcace0c34eb5f (patch) | |
| tree | b9beeaad46168bddf0f728fa8940a29f95a7dd18 | |
| parent | Handle adding and removal of group members. (diff) | |
| download | discord.py-33eba31aac375aed2f9cd148177fcace0c34eb5f.tar.xz discord.py-33eba31aac375aed2f9cd148177fcace0c34eb5f.zip | |
Fix the displaying of Message.system_content
| -rw-r--r-- | discord/message.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/discord/message.py b/discord/message.py index 69f37ed4..d0399982 100644 --- a/discord/message.py +++ b/discord/message.py @@ -312,10 +312,9 @@ class Message: # with the type ChannelType.group or ChannelType.private call_ended = self.call.ended_timestamp is not None - if call_ended: - if self.channel.me in self.call.participants: - return '{0.author.name} started a call.'.format(self) - else: - return 'You missed a call from {0.author.name}'.format(self) + if self.channel.me in self.call.participants: + return '{0.author.name} started a call.'.format(self) + elif call_ended: + return 'You missed a call from {0.author.name}'.format(self) else: return '{0.author.name} started a call \N{EM DASH} Join the call.'.format(self) |