Skip to content
Discussion options

You must be logged in to vote

discord.File accepts either an actual file or a string representing a filename. You're passing it bytes -- which is neither. As a result it's interpreting it as a filename. You probably want to write your bytes into io.BytesIO.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #6055 on November 18, 2020 07:38.