Files below 500mb wont send, even if the account has discord nitro boost #722
Answered
by
MCausc78
httpssilver
asked this question in
Help
-
So any time I have been trying to send a file below 500mb through, it keeps giving me a 413 error or tells me the file is too big to send, even when below the 500mb limit. Any way to fix this? |
Beta Was this translation helpful? Give feedback.
Answered by
MCausc78
Aug 2, 2024
Replies: 1 comment 5 replies
-
Use https://discordpy-self.readthedocs.io/en/latest/api.html#discord.abc.Messageable.upload_files to upload them to Discord GCP bucket and pass them into import io
data = b'suppose this is large binary file'
file = await channel.upload_files(discord.File(io.BytesIO(fp), filename='something.exe'))
await channel.send('Here is some file:', file=file) |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
dolfies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use https://discordpy-self.readthedocs.io/en/latest/api.html#discord.abc.Messageable.upload_files to upload them to Discord GCP bucket and pass them into
Messageable.send
.