Browse Source

Add forum post rename system message

pull/10109/head
Lilly Rose Berner 3 years ago
committed by dolfies
parent
commit
0a2bb5e85f
  1. 5
      discord/message.py

5
discord/message.py

@ -1735,7 +1735,10 @@ class Message(PartialMessage, Hashable):
return f'{self.author.name} removed {self.mentions[0].name} from the thread.'
if self.type is MessageType.channel_name_change:
return f'{self.author.name} changed the channel name: **{self.content}**'
if getattr(self.channel, 'parent', self.channel).type is ChannelType.forum:
return f'{self.author.name} changed the post title: **{self.content}**'
else:
return f'{self.author.name} changed the channel name: **{self.content}**'
if self.type is MessageType.channel_icon_change:
return f'{self.author.name} changed the channel icon.'

Loading…
Cancel
Save