gotta defer

This commit is contained in:
insert-usernamehere 2023-04-15 10:09:32 -04:00
parent a43233c7c6
commit 88b1268483

View file

@ -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")