@@ -98,7 +98,7 @@ def __init__(
9898 self ._connected : bool = False
9999 self ._paused : bool = False
100100
101- self ._volume : float = 1.0
101+ self ._volume : int = 100
102102 self ._source : Optional [abc .Playable ] = None
103103 self ._filter : Optional [Filter ] = None
104104
@@ -115,7 +115,7 @@ def user(self) -> discord.ClientUser:
115115 return self .client .user # type: ignore
116116
117117 @property
118- def volume (self ) -> float :
118+ def volume (self ) -> int :
119119 return self ._volume
120120
121121 @property
@@ -215,10 +215,10 @@ async def play(
215215 self ,
216216 source : abc .Playable ,
217217 replace : bool = True ,
218- start : int | None = None ,
219- end : int | None = None ,
220- volume : int | None = None ,
221- pause : bool | None = None ,
218+ start : Optional [ int ] = None ,
219+ end : Optional [ int ] = None ,
220+ volume : Optional [ int ] = None ,
221+ pause : Optional [ bool ] = None ,
222222 ):
223223 """|coro|
224224
@@ -331,18 +331,18 @@ async def resume(self) -> None:
331331 """
332332 await self .set_pause (False )
333333
334- async def set_volume (self , volume : float ) -> None :
334+ async def set_volume (self , volume : int ) -> None :
335335 """|coro|
336336
337- Sets the players volume. Accepts a float between ``0.0 `` and ``10.0 `` where ``1.0 `` means 100% volume.
337+ Sets the players volume. Accepts a float between ``0`` and ``1000 `` where ``100 `` means 100% volume.
338338
339339 Parameters
340340 ----------
341341 volume: int
342342 The volume to set the player to.
343343 """
344344
345- self ._volume = max (min (volume * 100 , 1000 ), 0 )
345+ self ._volume = max (min (volume , 1000 ), 0 )
346346
347347 await self .node ._websocket .send (
348348 op = "volume" ,
0 commit comments