Skip to content

Commit

Permalink
Add MessageFlags.ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jul 4, 2021
1 parent 6a553b2 commit 17268c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ def has_thread(self):
"""
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.
Expand Down

0 comments on commit 17268c3

Please sign in to comment.