mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Document and export MISSING sentinel
This commit is contained in:
parent
a14b43f2fd
commit
500bf77103
@ -88,12 +88,15 @@ __all__ = (
|
|||||||
'escape_mentions',
|
'escape_mentions',
|
||||||
'as_chunks',
|
'as_chunks',
|
||||||
'format_dt',
|
'format_dt',
|
||||||
|
'MISSING',
|
||||||
)
|
)
|
||||||
|
|
||||||
DISCORD_EPOCH = 1420070400000
|
DISCORD_EPOCH = 1420070400000
|
||||||
|
|
||||||
|
|
||||||
class _MissingSentinel:
|
class _MissingSentinel:
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -1311,6 +1311,12 @@ Utility Functions
|
|||||||
|
|
||||||
.. autofunction:: discord.utils.as_chunks
|
.. 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:
|
.. _discord-api-enums:
|
||||||
|
|
||||||
Enumerations
|
Enumerations
|
||||||
|
Loading…
x
Reference in New Issue
Block a user