diff --git a/transcribebot.py b/transcribebot.py index 9a65329..c587a1f 100644 --- a/transcribebot.py +++ b/transcribebot.py @@ -12,6 +12,7 @@ bot = commands.Bot(command_prefix='.') @bot.message_command(name="Transcrible") async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disnake.Message): + await inter.response.defer() # Reversing the message and sending it back. await message.attachments[0].save("audio.ogg") mp3file = AudioSegment.from_ogg("audio.ogg")