@@ -828,7 +828,7 @@ async def edit(
828828 files : Optional [Union [File , List [File ]]] = MISSING ,
829829 embeds : Optional [Union ["Embed" , List ["Embed" ]]] = MISSING ,
830830 suppress_embeds : Optional [bool ] = MISSING ,
831- allowed_mentions : Optional [AllowedMentions ] = MISSING ,
831+ allowed_mentions : Optional [Union [ AllowedMentions , dict ] ] = MISSING ,
832832 message_reference : Optional [MessageReference ] = MISSING ,
833833 attachments : Optional [List ["Attachment" ]] = MISSING ,
834834 components : Optional [
@@ -856,7 +856,7 @@ async def edit(
856856 :param suppress_embeds?: Whether to suppress embeds in the message.
857857 :type suppress_embeds?: Optional[bool]
858858 :param allowed_mentions?: The allowed mentions for the message.
859- :type allowed_mentions?: Optional[AllowedMentions]
859+ :type allowed_mentions?: Optional[Union[ AllowedMentions, dict] ]
860860 :param attachments?: The attachments to attach to the message. Needs to be uploaded to the CDN first
861861 :type attachments?: Optional[List[Attachment]]
862862 :param components?: A component, or list of components for the message. If `[]` the components will be removed
@@ -904,7 +904,7 @@ async def edit(
904904 else []
905905 )
906906
907- _allowed_mentions : dict = {} if allowed_mentions is MISSING else allowed_mentions ._json
907+ _allowed_mentions : dict = {} if allowed_mentions is MISSING else allowed_mentions ._json if isinstance ( allowed_mentions , AllowedMentions ) else allowed_mentions
908908 _message_reference : dict = {} if message_reference is MISSING else message_reference ._json
909909 if not components :
910910 _components = []
@@ -943,7 +943,7 @@ async def reply(
943943 embeds : Optional [Union ["Embed" , List ["Embed" ]]] = MISSING ,
944944 files : Optional [Union [File , List [File ]]] = MISSING ,
945945 attachments : Optional [List ["Attachment" ]] = MISSING ,
946- allowed_mentions : Optional [AllowedMentions ] = MISSING ,
946+ allowed_mentions : Optional [Union [ AllowedMentions , dict ] ] = MISSING ,
947947 stickers : Optional [List ["Sticker" ]] = MISSING ,
948948 components : Optional [
949949 Union [
@@ -970,7 +970,7 @@ async def reply(
970970 :param embeds?: An embed, or list of embeds for the message.
971971 :type embeds?: Optional[Union[Embed, List[Embed]]]
972972 :param allowed_mentions?: The allowed mentions for the message.
973- :type allowed_mentions?: Optional[AllowedMentions]
973+ :type allowed_mentions?: Optional[Union[ AllowedMentions, dict] ]
974974 :param components?: A component, or list of components for the message.
975975 :type components?: Optional[Union[ActionRow, Button, SelectMenu, List[ActionRow], List[Button], List[SelectMenu]]]
976976 :param stickers?: A list of stickers to send with your message. You can send up to 3 stickers per message.
@@ -991,7 +991,7 @@ async def reply(
991991 if not embeds or embeds is MISSING
992992 else ([embed ._json for embed in embeds ] if isinstance (embeds , list ) else [embeds ._json ])
993993 )
994- _allowed_mentions : dict = {} if allowed_mentions is MISSING else allowed_mentions ._json
994+ _allowed_mentions : dict = {} if allowed_mentions is MISSING else allowed_mentions ._json if isinstance ( allowed_mentions , AllowedMentions ) else allowed_mentions
995995 _message_reference = MessageReference (message_id = int (self .id ))._json
996996 _attachments = [] if attachments is MISSING else [a ._json for a in attachments ]
997997 if not components or components is MISSING :
0 commit comments