Browse Source

Fix error checking

pull/10230/head
blord0 2 months ago
parent
commit
1d2ab9c78e
  1. 2
      discord/abc.py

2
discord/abc.py

@ -1646,7 +1646,7 @@ class Messageable:
if voice: if voice:
if content is not None: if content is not None:
raise TypeError('Cannot send content with a voice message') raise TypeError('Cannot send content with a voice message')
if embeds is not None: if embed is not None or embeds is not None:
raise TypeError('Cannot send embeds with a voice message') raise TypeError('Cannot send embeds with a voice message')
if file is None: if file is None:
raise TypeError('A voice message must have a file') raise TypeError('A voice message must have a file')

Loading…
Cancel
Save