@@ -640,10 +640,6 @@ class Message(Hashable):
640
640
nonce: Optional[Union[:class:`str`, :class:`int`]]
641
641
The value used by the discord guild and the client to verify that the message is successfully sent.
642
642
This is not stored long term within Discord's servers and is only used ephemerally.
643
- enforce_nonce: Optional[:class:`bool`]
644
- Whether :attr:`nonce` is enforced to be validated.
645
-
646
- .. versionadded:: 2.5
647
643
embeds: List[:class:`Embed`]
648
644
A list of embeds the message has.
649
645
channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
@@ -752,7 +748,6 @@ class Message(Hashable):
752
748
"author" ,
753
749
"attachments" ,
754
750
"nonce" ,
755
- "enforce_nonce" ,
756
751
"pinned" ,
757
752
"role_mentions" ,
758
753
"type" ,
@@ -807,7 +802,6 @@ def __init__(
807
802
self .tts : bool = data ["tts" ]
808
803
self .content : str = data ["content" ]
809
804
self .nonce : int | str | None = data .get ("nonce" )
810
- self .enforce_nonce : bool | None = data .get ("enforce_nonce" )
811
805
self .stickers : list [StickerItem ] = [
812
806
StickerItem (data = d , state = state ) for d in data .get ("sticker_items" , [])
813
807
]
@@ -989,9 +983,6 @@ def _handle_embeds(self, value: list[EmbedPayload]) -> None:
989
983
def _handle_nonce (self , value : str | int ) -> None :
990
984
self .nonce = value
991
985
992
- def _handle_enforce_none (self , value : bool ) -> None :
993
- self .enforce_nonce = value
994
-
995
986
def _handle_author (self , author : UserPayload ) -> None :
996
987
self .author = self ._state .store_user (author )
997
988
if isinstance (self .guild , Guild ):
0 commit comments