Skip to content

Commit

Permalink
Update disnake/embeds.py
Browse files Browse the repository at this point in the history
Co-authored-by: Eneg <[email protected]>
Signed-off-by: Snipy7374 <[email protected]>
  • Loading branch information
Snipy7374 and Enegg authored Nov 14, 2024
1 parent a4e1f12 commit ef56e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disnake/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ def _handle_resource(
raise TypeError("Exactly one of url or file must be provided")
else:
if url is not MISSING and file is not MISSING:
raise TypeError("Only one of url or file must be provided, not both.")
raise TypeError("At most one of url or file may be provided, not both.")

if file:
if file.filename is None:
Expand Down

0 comments on commit ef56e00

Please sign in to comment.