Browse Source

Add support for 'guild_emoji_added' message type

pull/10284/head
Steve C 4 days ago
parent
commit
e34c893483
  1. 1
      discord/enums.py
  2. 3
      discord/message.py
  3. 1
      discord/types/message.py

1
discord/enums.py

@ -275,6 +275,7 @@ class MessageType(Enum):
guild_incident_report_false_alarm = 39
purchase_notification = 44
poll_result = 46
guild_emoji_added = 63
class SpeakingState(Enum):

3
discord/message.py

@ -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.guild_emoji_added:
return f'{self.author.name} added a new emoji, {self.content}'
# Fallback for unknown message types
return ''

1
discord/types/message.py

@ -175,6 +175,7 @@ MessageType = Literal[
39,
44,
46,
63,
]

Loading…
Cancel
Save