Add a new extlink for discord documentation

This commit is contained in:
Rapptz
2022-05-27 04:05:01 -04:00
parent 081f483a0d
commit cf031f71b9
6 changed files with 10 additions and 21 deletions

View File

@ -879,7 +879,7 @@ Messages
will return a :class:`Message` object that represents the message before the content was modified.
Due to the inherently raw nature of this event, the data parameter coincides with
the raw data given by the `gateway <https://discord.com/developers/docs/topics/gateway#message-update>`_.
the raw data given by the :ddocs:`gateway <topics/gateway#message-update>`.
Since the data payload can be partial, care must be taken when accessing stuff in the dictionary.
One example of a common case of partial data is when the ``'content'`` key is inaccessible. This

View File

@ -51,6 +51,7 @@ autodoc_typehints = 'none'
extlinks = {
'issue': ('https://github.com/Rapptz/discord.py/issues/%s', 'GH-'),
'ddocs': ('https://discord.com/developers/docs/%s', None),
}
# Links used for cross-referencing stuff in other documentation