From 3dd7f8fefb59202cd57d5478cf21b9f8d01f56c8 Mon Sep 17 00:00:00 2001 From: blord0 Date: Mon, 28 Jul 2025 01:24:29 +0100 Subject: [PATCH] Rename duation to duration --- discord/file.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/discord/file.py b/discord/file.py index 804c3c0e6..baf7102fb 100644 --- a/discord/file.py +++ b/discord/file.py @@ -120,7 +120,7 @@ class File: self.spoiler: bool = spoiler self.description: Optional[str] = description - self.duation = duration + self.duration = duration self._waveform = waveform @property @@ -133,7 +133,9 @@ class File: @property def waveform(self) -> str: - """:class:`str`: The waveform data for the voice message.""" + """:class:`str`: The waveform data for the voice message. + + .. versionadded:: 2.6""" if self._waveform is None: return base64.b64encode(os.urandom(256)).decode('utf-8') return self._waveform @@ -168,8 +170,8 @@ class File: if self.description is not None: payload['description'] = self.description - if self.duation is not None: - payload['duration_secs'] = self.duation + if self.duration is not None: + payload['duration_secs'] = self.duration payload['waveform'] = self.waveform return payload