aboutsummaryrefslogtreecommitdiff
path: root/code/utils/command_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'code/utils/command_tree.py')
-rw-r--r--code/utils/command_tree.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/code/utils/command_tree.py b/code/utils/command_tree.py
index 03ecfe4..afdbd2c 100644
--- a/code/utils/command_tree.py
+++ b/code/utils/command_tree.py
@@ -69,22 +69,5 @@ class Tree(app_commands.CommandTree):
except discord.errors.InteractionResponded:
await interaction.followup.send(embed=embed, ephemeral=True)
- elif (error, LoadError):
- embed = create_embed(
- title="Load Error",
- description=(
- "Apple Music and Spotify do not allow direct playing from"
- " their websites, and I was unable to load a track on a"
- " valid source. Please try again."
- ),
- )
- # Only send the error if the interaction is still valid
- try:
- await interaction.response.send_message(
- embed=embed, ephemeral=True
- )
- except discord.errors.InteractionResponded:
- pass
-
else:
raise error