mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-30 21:12:58 +00:00 
			
		
		
		
	Add forum post rename system message
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						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.' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user