Skip to content

Commit e18d571

Browse files
authored
feat: add silent messages to MessageFlags (#1912)
1 parent 546f051 commit e18d571

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ These changes are available on the `master` branch, but have not yet been releas
2727
([#1852](https://github.com/Pycord-Development/pycord/pull/1852))
2828
- Added new `EmbeddedActivity` values.
2929
([#1859](https://github.com/Pycord-Development/pycord/pull/1859))
30+
- Added new `suppress_notifications` to `MessageFlags.
31+
([#1912](https://github.com/Pycord-Development/pycord/pull/1912))
3032

3133
### Changed
3234

discord/flags.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,17 @@ def failed_to_mention_some_roles_in_thread(self):
393393
"""
394394
return 256
395395

396+
@flag_value
397+
def suppress_notifications(self):
398+
""":class:`bool`: Returns ``True`` if the source message does not trigger push and desktop notifications
399+
400+
The user will still receive a mention
401+
402+
.. versionadded:: 2.4
403+
"""
404+
405+
return 4096
406+
396407

397408
@fill_with_flags()
398409
class PublicUserFlags(BaseFlags):

0 commit comments

Comments
 (0)