use correct sending endpoint

This commit is contained in:
insert-usernamehere 2023-04-15 10:19:13 -04:00
parent 362e0f627f
commit 77bdf82731

View file

@ -20,7 +20,7 @@ async def transcribe(inter: disnake.ApplicationCommandInteraction, message: disn
convertemessage = sr.AudioFile("audio.wav")
with convertemessage as sounds:
transcribeaudo = st.record(sounds)
await inter.edit_original_message(st.recognize_sphinx(transcribeaudo))
await inter.edit_original_message(content=st.recognize_sphinx(transcribeaudo))
os.remove("audio.ogg")
os.remove("audio.wav")