Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ async def send_message(
if embed is not MISSING and embeds is not MISSING:
raise TypeError('cannot mix embed and embeds keyword arguments')

if embed is not MISSING:
if embed is not MISSING and embed is not None:
embeds = [embed]

if embeds:
Expand All @@ -576,7 +576,7 @@ async def send_message(
if ephemeral:
payload['flags'] = 64

if view is not MISSING:
if view is not MISSING and view is not None:
payload['components'] = view.to_components()

state = self._parent._state
Expand Down Expand Up @@ -620,7 +620,7 @@ async def send_message(
for file in files:
file.close()

if view is not MISSING:
if view is not MISSING and view is not None:
if ephemeral and view.timeout is None:
view.timeout = 15 * 60.0

Expand Down