Document and export MISSING sentinel

This commit is contained in:
Rapptz 2022-04-28 07:52:23 -04:00
parent a14b43f2fd
commit 500bf77103
2 changed files with 9 additions and 0 deletions

View File

@ -88,12 +88,15 @@ __all__ = (
'escape_mentions',
'as_chunks',
'format_dt',
'MISSING',
)
DISCORD_EPOCH = 1420070400000
class _MissingSentinel:
__slots__ = ()
def __eq__(self, other):
return False

View File

@ -1311,6 +1311,12 @@ Utility Functions
.. autofunction:: discord.utils.as_chunks
.. data:: MISSING
A type safe sentinel used in the library to represent something as missing. Used to distinguish from ``None`` values.
.. versionadded:: 2.0
.. _discord-api-enums:
Enumerations