Browse Source

Incriment versionadded to 2.7

pull/10230/head
blord0 2 weeks ago
committed by GitHub
parent
commit
45945b6909
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      discord/file.py

6
discord/file.py

@ -90,12 +90,12 @@ class File:
A *non-exhaustive* list of supported formats are: `ogg`, `mp3`, `wav`, `aac`, and `flac`. A *non-exhaustive* list of supported formats are: `ogg`, `mp3`, `wav`, `aac`, and `flac`.
.. versionadded:: 2.6 .. versionadded:: 2.7
duration: Optional[:class:`float`] duration: Optional[:class:`float`]
The duration of the voice message in seconds The duration of the voice message in seconds
.. versionadded:: 2.6 .. versionadded:: 2.7
""" """
__slots__ = ( __slots__ = (
@ -186,7 +186,7 @@ class File:
Only supports generating the waveform for Opus format files, other files will be given a random waveform 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: if self._waveform is None:
try: try:
self._waveform = self.generate_waveform() self._waveform = self.generate_waveform()

Loading…
Cancel
Save