diff --git a/discord/interactions.py b/discord/interactions.py index 12f44aa8c9..3e9e58878b 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -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: @@ -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 @@ -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