NIKOLAY_TETUS

Untitled

Jun 15th, 2023
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. @fast_api.handler(...)
  2.     #fast api args to volume() func
  3.     #...
  4.  
  5.     @bot.tree.command(name="volume", description="Set the volume of the player")
  6.     @app_commands.describe(volume="Set the volume to a number between 0 and 100")
  7.     async def volume(interaction: discord.Interaction, volume: int):
  8.         await lavalink.volume(interaction.guild.id, volume)
  9.         await interaction.response.send_message(f"Set the volume to {volume}%.")
  10.     return volume(...)
Advertisement
Add Comment
Please, Sign In to add comment