From b43441c7e3854c0feb573f0bb5ee337247f62222 Mon Sep 17 00:00:00 2001 From: blord0 Date: Tue, 19 Aug 2025 11:44:54 +0000 Subject: [PATCH] Formatting --- discord/file.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/file.py b/discord/file.py index 1e2e3c679..b3846a2d0 100644 --- a/discord/file.py +++ b/discord/file.py @@ -155,11 +155,11 @@ class File: self.duration = duration if waveform is not None: if len(waveform) > 256: - raise ValueError("Waveforms have a maximum of 256 values") + raise ValueError('Waveforms have a maximum of 256 values') elif max(waveform) > 255: - raise ValueError("Maximum value of ints is 255 for waveforms") + raise ValueError('Maximum value of ints is 255 for waveforms') elif min(waveform) < 0: - raise ValueError("Minimum value of ints is 0 for waveforms") + raise ValueError('Minimum value of ints is 0 for waveforms') self._waveform = waveform if voice is MISSING: @@ -247,7 +247,7 @@ class File: def generate_waveform(self) -> list[int]: if not self.voice: - raise ValueError("Cannot produce waveform for non voice file") + raise ValueError('Cannot produce waveform for non voice file') self.reset() ogg = OggStream(self.fp) # type: ignore decoder = Decoder()