diff --git a/youtubedownloader/youtubedownloader.py b/youtubedownloader/youtubedownloader.py index b2356a8..a4a1aed 100644 --- a/youtubedownloader/youtubedownloader.py +++ b/youtubedownloader/youtubedownloader.py @@ -117,7 +117,7 @@ class YouTubeDownloader(commands.Cog): if os.path.isfile(output[0]): with open(output[0], 'rb') as file: try: - complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[3])) + complete_message = await ctx.send(content="YouTube Downloader completed!\nDownloaded file:", file=discord.File(file, output[2])) except ValueError: complete_message = await ctx.send(content="YouTube Downloader completed, but the file was too large to upload.") file.close()