Make YouTube/Apple Music messages ephemeral

This commit is contained in:
Parker M. 2024-04-09 01:59:50 -05:00
parent a550657990
commit 6122d0be16
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A

View File

@ -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.", 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, 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: if "music.apple.com" in query:
embed = discord.Embed( 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.", 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, 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 # If a Spotify link is found, act accordingly
# We use a custom source for this (I tried the LavaSrc plugin, but Spotify # We use a custom source for this (I tried the LavaSrc plugin, but Spotify