mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 16:24:14 +00:00
Add forum post rename system message
This commit is contained in:
parent
eea70b53cd
commit
e0341c9ef2
@ -1850,7 +1850,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…
x
Reference in New Issue
Block a user