From 88b12684835002aa8c33b2e9fc5fce5eefcfc266 Mon Sep 17 00:00:00 2001 From: insert-usernamehere Date: Sat, 15 Apr 2023 10:09:32 -0400 Subject: [PATCH] gotta defer --- transcribebot.py | 1 + 1 file changed, 1 insertion(+) 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")