@@ -430,9 +430,8 @@ def _update_components(self, data):
430430 def _update (self , data ):
431431 super ()._update (data )
432432 self ._update_components (data )
433- print ("updated components" , [type (x ) for x in self .components ])
434433
435- async def edit (self , * , content = MISSING , embeds = MISSING , attachments = MISSING , suppress = MISSING ,
434+ async def edit (self , * , content = MISSING , embed = MISSING , embeds = MISSING , attachments = MISSING , suppress = MISSING ,
436435 delete_after = MISSING , allowed_mentions = MISSING , components = MISSING ):
437436 """Edits the message and updates its properties
438437
@@ -444,6 +443,8 @@ async def edit(self, *, content=MISSING, embeds=MISSING, attachments=MISSING, su
444443 ----------------
445444 content: :class:`str`
446445 The new message content
446+ embed: :class:`discord.Embed`
447+ The new embed of the message
447448 embeds: List[:class:`discord.Embed`]
448449 The new list of discord embeds
449450 attachments: List[:class:`discord.Attachment`]
@@ -457,9 +458,7 @@ async def edit(self, *, content=MISSING, embeds=MISSING, attachments=MISSING, su
457458 components: List[:class:`~Button` | :class:`~LinkButton` | :class:`~SelectMenu`]
458459 A list of components to be included the message
459460 """
460- payload = jsonifyMessage (content , embeds = embeds , allowed_mentions = allowed_mentions , attachments = attachments , suppress = suppress , flags = self .flags .value , components = components )
461- if suppress :
462- self .suppressed = suppress
461+ payload = jsonifyMessage (content , embed = embed , embeds = embeds , allowed_mentions = allowed_mentions , attachments = attachments , suppress = suppress , flags = self .flags .value , components = components )
463462 data = await self ._state .http .edit_message (self .channel .id , self .id , ** payload )
464463 self ._update (data )
465464
0 commit comments