File¶
discord_http.file module¶
- class discord_http.file.File(data, filename=None, *, spoiler=False, title=None, description=None, duration_secs=None, waveform=None)¶
Bases:
objectRepresents a file to be uploaded to Discord.
- Parameters:
- spoiler¶
Whether the file is a spoiler.
- title¶
The title of the file, if any.
- description¶
The description of the file, if any.
- duration_secs¶
The duration of the file in seconds, if applicable.
- waveform¶
The waveform data for the file, if applicable.
- data¶
The file data as a file-like object.