async def jsk_vc_volume(self, ctx: commands.Context, *, percentage: float):
        """
        Adjusts the volume of an audio source if it is supported.
        """

        volume = max(0.0, min(1.0, percentage / 100))

        source = ctx.guild.voice_client.source

        if not isinstance(source, discord.PCMVolumeTransformer):
            return await ctx.send("This source doesn't support adjusting volume or "
                                  "the interface to do so is not exposed.")

        source.volume = volume

        await ctx.send(f"Volume set to {volume * 100:.2f}%")
async def jsk_vc_volume ( self , ctx : commands . Context , * , percentage : float ) : volume = max ( 0.0 , min ( 1.0 , percentage / 100 ) ) source = ctx . guild . voice_client . source if not isinstance ( source , discord . PCMVolumeTransformer ) : return await ctx . send ( "This source doesn't support adjusting volume or " "the interface to do so is not exposed." ) source . volume = volume await ctx . send ( f"Volume set to {volume * 100:.2f}%" )
Adjusts the volume of an audio source if it is supported.