Browse Source

Mention when MessageReference.message_id can be None

pull/10112/head
Jakub Kuczys 1 month ago
parent
commit
4ce4c55d26
No known key found for this signature in database GPG Key ID: 9F02686F15FCBCD3
  1. 5
      discord/message.py

5
discord/message.py

@ -610,6 +610,11 @@ class MessageReference:
.. versionadded:: 2.5
message_id: Optional[:class:`int`]
The id of the message referenced.
This can be ``None`` when this message reference was retrieved from
a system message of one of the following types:
- :attr:`MessageType.channel_follow_add`
- :attr:`MessageType.thread_created`
channel_id: :class:`int`
The channel id of the message referenced.
guild_id: Optional[:class:`int`]

Loading…
Cancel
Save