Browse Source

rename guild_emoji_added to emoji_added

pull/10284/head
Steve C 4 days ago
parent
commit
7f09758732
  1. 2
      discord/enums.py
  2. 2
      discord/message.py
  3. 6
      docs/api.rst

2
discord/enums.py

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

2
discord/message.py

@ -2865,7 +2865,7 @@ 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:
if self.type is MessageType.emoji_added:
return f'{self.author.name} added a new emoji, {self.content}'
# Fallback for unknown message types

6
docs/api.rst

@ -1924,6 +1924,12 @@ of :class:`enum.Enum`.
The system message sent when a poll has closed.
.. attribute:: emoji_added
The system message sent when a custom emoji is added to the guild.
.. versionadded:: 2.7
.. class:: UserFlags
Represents Discord User flags.

Loading…
Cancel
Save