mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-04 01:00:00 +00:00
Add forum post rename system message
This commit is contained in:
parent
eea70b53cd
commit
e0341c9ef2
@ -1850,6 +1850,9 @@ class Message(PartialMessage, Hashable):
|
|||||||
return f'{self.author.name} removed {self.mentions[0].name} from the thread.'
|
return f'{self.author.name} removed {self.mentions[0].name} from the thread.'
|
||||||
|
|
||||||
if self.type is MessageType.channel_name_change:
|
if self.type is MessageType.channel_name_change:
|
||||||
|
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}**'
|
return f'{self.author.name} changed the channel name: **{self.content}**'
|
||||||
|
|
||||||
if self.type is MessageType.channel_icon_change:
|
if self.type is MessageType.channel_icon_change:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user