Fix voice

This commit is contained in:
Nexus 2023-03-20 14:49:45 +00:00
parent ffb6f51fed
commit 7bcc441d38
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -831,11 +831,13 @@ class OtherCog(commands.Cog):
voice: discord.Option(
str,
"The voice to use. Some may cause timeout.",
choices=VOICES,
autocomplete=discord.utils.basic_autocomplete(VOICES),
default="default"
)
):
"""Converts text to MP3. 5 uses per 10 minutes."""
if voice not in VOICES:
return await ctx.respond("Invalid voice.")
speed = min(300, max(50, speed))
_self = self
_bot = self.bot