|
|
@ -1435,6 +1435,7 @@ class Messageable: |
|
|
|
reference: Union[Message, MessageReference, PartialMessage] = ..., |
|
|
|
mention_author: bool = ..., |
|
|
|
suppress_embeds: bool = ..., |
|
|
|
silent: bool = ..., |
|
|
|
) -> Message: |
|
|
|
... |
|
|
|
|
|
|
@ -1452,6 +1453,7 @@ class Messageable: |
|
|
|
reference: Union[Message, MessageReference, PartialMessage] = ..., |
|
|
|
mention_author: bool = ..., |
|
|
|
suppress_embeds: bool = ..., |
|
|
|
silent: bool = ..., |
|
|
|
) -> Message: |
|
|
|
... |
|
|
|
|
|
|
@ -1469,6 +1471,7 @@ class Messageable: |
|
|
|
reference: Union[Message, MessageReference, PartialMessage] = ..., |
|
|
|
mention_author: bool = ..., |
|
|
|
suppress_embeds: bool = ..., |
|
|
|
silent: bool = ..., |
|
|
|
) -> Message: |
|
|
|
... |
|
|
|
|
|
|
@ -1486,6 +1489,7 @@ class Messageable: |
|
|
|
reference: Union[Message, MessageReference, PartialMessage] = ..., |
|
|
|
mention_author: bool = ..., |
|
|
|
suppress_embeds: bool = ..., |
|
|
|
silent: bool = ..., |
|
|
|
) -> Message: |
|
|
|
... |
|
|
|
|
|
|
@ -1503,6 +1507,7 @@ class Messageable: |
|
|
|
reference: Optional[Union[Message, MessageReference, PartialMessage]] = None, |
|
|
|
mention_author: Optional[bool] = None, |
|
|
|
suppress_embeds: bool = False, |
|
|
|
silent: bool = False, |
|
|
|
) -> Message: |
|
|
|
"""|coro| |
|
|
|
|
|
|
@ -1566,6 +1571,11 @@ class Messageable: |
|
|
|
suppress_embeds: :class:`bool` |
|
|
|
Whether to suppress embeds for the message. This sends the message without any embeds if set to ``True``. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
silent: :class:`bool` |
|
|
|
Whether to suppress push and desktop notifications for the message. This will increment the mention counter |
|
|
|
in the UI, but will not actually send a notification. |
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
|
|
Raises |
|
|
@ -1608,10 +1618,12 @@ class Messageable: |
|
|
|
else: |
|
|
|
reference_dict = MISSING |
|
|
|
|
|
|
|
if suppress_embeds: |
|
|
|
if suppress_embeds or silent: |
|
|
|
from .message import MessageFlags # circular import |
|
|
|
|
|
|
|
flags = MessageFlags._from_value(4) |
|
|
|
flags = MessageFlags._from_value(0) |
|
|
|
flags.suppress_embeds = suppress_embeds |
|
|
|
flags.suppress_notifications = silent |
|
|
|
else: |
|
|
|
flags = MISSING |
|
|
|
|
|
|
|