Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2024
1 parent 23a0438 commit 9bbb916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/voice_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
from __future__ import annotations

import asyncio
import datetime
import logging
import select
import socket
import struct
import threading
import time
import datetime
from typing import TYPE_CHECKING, Any, Callable, Literal, overload

from . import opus, utils
Expand Down Expand Up @@ -993,6 +993,6 @@ def send_audio_packet(self, data: bytes, *, encode: bool = True) -> None:
def played_seconds(self) -> datetime.timedelta:
"""Gets the elapsed time of the playing audio. Returns 0 if not playing anything."""
if self._player:
return datetime.timedelta(milliseconds=self._player.played_frames()*20)
return datetime.timedelta(milliseconds=self._player.played_frames() * 20)
else:
return datetime.timedelta()

0 comments on commit 9bbb916

Please sign in to comment.