File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ async def send_message(
562
562
if embed is not MISSING and embeds is not MISSING :
563
563
raise TypeError ('cannot mix embed and embeds keyword arguments' )
564
564
565
- if embed is not MISSING :
565
+ if embed is not MISSING and embed is not None :
566
566
embeds = [embed ]
567
567
568
568
if embeds :
@@ -576,7 +576,7 @@ async def send_message(
576
576
if ephemeral :
577
577
payload ['flags' ] = 64
578
578
579
- if view is not MISSING :
579
+ if view is not MISSING and view is not None :
580
580
payload ['components' ] = view .to_components ()
581
581
582
582
state = self ._parent ._state
@@ -620,7 +620,7 @@ async def send_message(
620
620
for file in files :
621
621
file .close ()
622
622
623
- if view is not MISSING :
623
+ if view is not MISSING and view is not None :
624
624
if ephemeral and view .timeout is None :
625
625
view .timeout = 15 * 60.0
626
626
You can’t perform that action at this time.
0 commit comments