@@ -640,10 +640,6 @@ class Message(Hashable):
640640 nonce: Optional[Union[:class:`str`, :class:`int`]]
641641 The value used by the discord guild and the client to verify that the message is successfully sent.
642642 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
647643 embeds: List[:class:`Embed`]
648644 A list of embeds the message has.
649645 channel: Union[:class:`TextChannel`, :class:`Thread`, :class:`DMChannel`, :class:`GroupChannel`, :class:`PartialMessageable`]
@@ -752,7 +748,6 @@ class Message(Hashable):
752748 "author" ,
753749 "attachments" ,
754750 "nonce" ,
755- "enforce_nonce" ,
756751 "pinned" ,
757752 "role_mentions" ,
758753 "type" ,
@@ -807,7 +802,6 @@ def __init__(
807802 self .tts : bool = data ["tts" ]
808803 self .content : str = data ["content" ]
809804 self .nonce : int | str | None = data .get ("nonce" )
810- self .enforce_nonce : bool | None = data .get ("enforce_nonce" )
811805 self .stickers : list [StickerItem ] = [
812806 StickerItem (data = d , state = state ) for d in data .get ("sticker_items" , [])
813807 ]
@@ -989,9 +983,6 @@ def _handle_embeds(self, value: list[EmbedPayload]) -> None:
989983 def _handle_nonce (self , value : str | int ) -> None :
990984 self .nonce = value
991985
992- def _handle_enforce_none (self , value : bool ) -> None :
993- self .enforce_nonce = value
994-
995986 def _handle_author (self , author : UserPayload ) -> None :
996987 self .author = self ._state .store_user (author )
997988 if isinstance (self .guild , Guild ):
0 commit comments