Skip to content

Commit

Permalink
feat: add silent messages to MessageFlags (#1912)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustaSqu1d committed Feb 9, 2023
1 parent 546f051 commit e18d571
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#1852](https://github.com/Pycord-Development/pycord/pull/1852))
- Added new `EmbeddedActivity` values.
([#1859](https://github.com/Pycord-Development/pycord/pull/1859))
- Added new `suppress_notifications` to `MessageFlags.
([#1912](https://github.com/Pycord-Development/pycord/pull/1912))

### Changed

Expand Down
11 changes: 11 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,17 @@ def failed_to_mention_some_roles_in_thread(self):
"""
return 256

@flag_value
def suppress_notifications(self):
""":class:`bool`: Returns ``True`` if the source message does not trigger push and desktop notifications
The user will still receive a mention
.. versionadded:: 2.4
"""

return 4096


@fill_with_flags()
class PublicUserFlags(BaseFlags):
Expand Down

0 comments on commit e18d571

Please sign in to comment.