Add discord back to File call

pull/104/head
imnotverygood 5 years ago committed by GitHub
parent f4150db184
commit 700ab18dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,4 +31,4 @@ class TTS(Cog):
tts = gTTS(text, "en")
tts.write_to_fp(mp3_fp)
mp3_fp.seek(0)
await ctx.send(file=File(mp3_fp, "text.mp3"))
await ctx.send(file=discord.File(mp3_fp, "text.mp3"))

Loading…
Cancel
Save