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(
562562 if embed is not MISSING and embeds is not MISSING :
563563 raise TypeError ('cannot mix embed and embeds keyword arguments' )
564564
565- if embed is not MISSING :
565+ if embed is not MISSING and embed is not None :
566566 embeds = [embed ]
567567
568568 if embeds :
@@ -576,7 +576,7 @@ async def send_message(
576576 if ephemeral :
577577 payload ['flags' ] = 64
578578
579- if view is not MISSING :
579+ if view is not MISSING and view is not None :
580580 payload ['components' ] = view .to_components ()
581581
582582 state = self ._parent ._state
@@ -620,7 +620,7 @@ async def send_message(
620620 for file in files :
621621 file .close ()
622622
623- if view is not MISSING :
623+ if view is not MISSING and view is not None :
624624 if ephemeral and view .timeout is None :
625625 view .timeout = 15 * 60.0
626626
You can’t perform that action at this time.
0 commit comments