mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-03 15:02:56 +00:00
Add support for emoji_added message type
This commit is contained in:
@@ -2865,6 +2865,9 @@ class Message(PartialMessage, Hashable):
|
||||
)
|
||||
return f"{self.author.display_name}'s poll {poll_title.value} has closed." # type: ignore
|
||||
|
||||
if self.type is MessageType.emoji_added:
|
||||
return f'{self.author.name} added a new emoji, {self.content}'
|
||||
|
||||
# Fallback for unknown message types
|
||||
return ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user