blord0
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
discord/file.py
|
|
@ -90,12 +90,12 @@ class File: |
|
|
|
|
|
|
|
A *non-exhaustive* list of supported formats are: `ogg`, `mp3`, `wav`, `aac`, and `flac`. |
|
|
|
|
|
|
|
.. versionadded:: 2.6 |
|
|
|
.. versionadded:: 2.7 |
|
|
|
|
|
|
|
duration: Optional[:class:`float`] |
|
|
|
The duration of the voice message in seconds |
|
|
|
|
|
|
|
.. versionadded:: 2.6 |
|
|
|
.. versionadded:: 2.7 |
|
|
|
""" |
|
|
|
|
|
|
|
__slots__ = ( |
|
|
@ -186,7 +186,7 @@ class File: |
|
|
|
|
|
|
|
Only supports generating the waveform for Opus format files, other files will be given a random waveform |
|
|
|
|
|
|
|
.. versionadded:: 2.6""" |
|
|
|
.. versionadded:: 2.7""" |
|
|
|
if self._waveform is None: |
|
|
|
try: |
|
|
|
self._waveform = self.generate_waveform() |
|
|
|