async def set_volume(self, vol: int):
if self._lavalink._server_version <= <NUM_LIT:2>:<EOL><INDENT>self.volume = max(min(vol, <NUM_LIT>), <NUM_LIT:0>)<EOL><DEDENT>else:<EOL><INDENT>self.volume = max(min(vol, <NUM_LIT:1000>), <NUM_LIT:0>)<EOL><DEDENT>await self._lavalink.ws.send(op='<STR_LIT>', guildId=self.guild_id, volume=self.volume)<EOL>
Sets the player's volume (150% or 1000% limit imposed by lavalink depending on the version).