File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -502,9 +502,9 @@ async def send_message(
502
502
self ,
503
503
content : Optional [Any ] = None ,
504
504
* ,
505
- embed : Embed = MISSING ,
506
- embeds : List [Embed ] = MISSING ,
507
- view : View = MISSING ,
505
+ embed : Embed = None ,
506
+ embeds : List [Embed ] = None ,
507
+ view : View = None ,
508
508
tts : bool = False ,
509
509
ephemeral : bool = False ,
510
510
allowed_mentions : AllowedMentions = None ,
@@ -563,10 +563,10 @@ async def send_message(
563
563
'tts' : tts ,
564
564
}
565
565
566
- if embed is not MISSING and embeds is not MISSING :
566
+ if embed is not None and embeds is not None :
567
567
raise TypeError ('cannot mix embed and embeds keyword arguments' )
568
568
569
- if embed is not MISSING and embed is not None :
569
+ if embed is not None :
570
570
embeds = [embed ]
571
571
572
572
if embeds :
@@ -580,7 +580,7 @@ async def send_message(
580
580
if ephemeral :
581
581
payload ['flags' ] = 64
582
582
583
- if view is not MISSING and view is not None :
583
+ if view is not None :
584
584
payload ['components' ] = view .to_components ()
585
585
586
586
state = self ._parent ._state
@@ -624,7 +624,7 @@ async def send_message(
624
624
for file in files :
625
625
file .close ()
626
626
627
- if view is not MISSING and view is not None :
627
+ if view is not None :
628
628
if ephemeral and view .timeout is None :
629
629
view .timeout = 15 * 60.0
630
630
You can’t perform that action at this time.
0 commit comments