def to_reference(self, *, fail_if_not_exists: bool=True) -> MessageReference:
    'Creates a :class:`~discord.MessageReference` from the current message.\n\n        .. versionadded:: 1.6\n\n        Parameters\n        ----------\n        fail_if_not_exists: :class:`bool`\n            Whether replying using the message reference should raise :class:`HTTPException`\n            if the message no longer exists or Discord could not fetch the message.\n\n            .. versionadded:: 1.7\n\n        Returns\n        ---------\n        :class:`~discord.MessageReference`\n            The reference to this message.\n        '
    return MessageReference.from_message(self, fail_if_not_exists=fail_if_not_exists)
Creates a :class:`~discord.MessageReference` from the current message.

.. versionadded:: 1.6

Parameters
----------
fail_if_not_exists: :class:`bool`
    Whether replying using the message reference should raise :class:`HTTPException`
    if the message no longer exists or Discord could not fetch the message.

    .. versionadded:: 1.7

Returns
---------
:class:`~discord.MessageReference`
    The reference to this message.
def to_reference(self, *, fail_if_not_exists: bool=True) -> MessageReference:
    'Creates a :class:`~discord.MessageReference` from the current message.\n\n        .. versionadded:: 1.6\n\n        Parameters\n        ----------\n        fail_if_not_exists: :class:`bool`\n            Whether replying using the message reference should raise :class:`HTTPException`\n            if the message no longer exists or Discord could not fetch the message.\n\n            .. versionadded:: 1.7\n\n        Returns\n        ---------\n        :class:`~discord.MessageReference`\n            The reference to this message.\n        '
    return MessageReference.from_message(self, fail_if_not_exists=fail_if_not_exists)