From 6122d0be16330373f480dc5a3c9011e119a0801d Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 9 Apr 2024 01:59:50 -0500 Subject: [PATCH] Make YouTube/Apple Music messages ephemeral --- code/cogs/play.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/cogs/play.py b/code/cogs/play.py index f25b3d8..f64b70b 100644 --- a/code/cogs/play.py +++ b/code/cogs/play.py @@ -34,7 +34,7 @@ class Play(commands.Cog): description="Unfortunately, YouTube does not allow bots to stream from their platform. Try sending a link for a different platform, or simply type the name of the song and I will automatically find it on a supported platform.", color=BOT_COLOR, ) - return await interaction.response.send_message(embed=embed) + return await interaction.response.send_message(embed=embed, ephemeral=True) if "music.apple.com" in query: embed = discord.Embed( @@ -42,7 +42,7 @@ class Play(commands.Cog): description="Unfortunately, Apple Music does not allow bots to stream from their platform. Try sending a link for a different platform, or simply type the name of the song and I will automatically find it on a supported platform.", color=BOT_COLOR, ) - return await interaction.response.send_message(embed=embed) + return await interaction.response.send_message(embed=embed, ephemeral=True) # If a Spotify link is found, act accordingly # We use a custom source for this (I tried the LavaSrc plugin, but Spotify