aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-03 21:28:49 -0400
committerRapptz <[email protected]>2021-07-03 21:29:28 -0400
commit17268c3368220c21acf5ed8fcc10d1764403fd28 (patch)
tree4249caaefb0d60192b909710c7819d3a59fccfbd
parentFix building docs due to missing InteractionMessage in __all__ (diff)
downloaddiscord.py-17268c3368220c21acf5ed8fcc10d1764403fd28.tar.xz
discord.py-17268c3368220c21acf5ed8fcc10d1764403fd28.zip
Add MessageFlags.ephemeral
-rw-r--r--discord/flags.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/flags.py b/discord/flags.py
index 0ca6e34d..67dc760d 100644
--- a/discord/flags.py
+++ b/discord/flags.py
@@ -287,6 +287,15 @@ class MessageFlags(BaseFlags):
"""
return 32
+ @flag_value
+ def ephemeral(Self):
+ """:class:`bool`: Returns ``True`` if the source message is ephemeral.
+
+ .. versionadded:: 2.0
+ """
+ return 64
+
+
@fill_with_flags()
class PublicUserFlags(BaseFlags):
r"""Wraps up the Discord User Public flags.