Browse Source

Update Message.mention_everyone docs to include @here

pull/1785/head
Laurenz 6 years ago
committed by Rapptz
parent
commit
dd884a6afe
  1. 6
      discord/message.py
  2. 2
      discord/permissions.py

6
discord/message.py

@ -142,9 +142,9 @@ class Message:
.. note::
This does not check if the ``@everyone`` text is in the message itself.
Rather this boolean indicates if the ``@everyone`` text is in the message
**and** it did end up mentioning everyone.
This does not check if the ``@everyone`` or the ``@here`` text is in the message itself.
Rather this boolean indicates if either the ``@everyone`` or the ``@here`` text is in the message
**and** it did end up mentioning.
mentions: :class:`list`
A list of :class:`Member` that were mentioned. If the message is in a private message

2
discord/permissions.py

@ -368,7 +368,7 @@ class Permissions:
@property
def mention_everyone(self):
"""Returns True if a user's @everyone will mention everyone in the text channel."""
"""Returns True if a user's @everyone or @here will mention everyone in the text channel."""
return self._bit(17)
@mention_everyone.setter

Loading…
Cancel
Save