Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add silent messages to MessageFlags #1912

Merged
merged 3 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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