From 644f28bbf522a64287eb1452f3206c2e566d4c96 Mon Sep 17 00:00:00 2001 From: Parker Date: Wed, 10 Jul 2024 23:04:57 -0500 Subject: [PATCH] Correct verbiage of comment --- code/tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/tree.py b/code/tree.py index 0ac8fe8..9ab0022 100644 --- a/code/tree.py +++ b/code/tree.py @@ -44,8 +44,8 @@ class Tree(app_commands.CommandTree): ) await interaction.response.send_message(embed=embed, ephemeral=True) - # If a player cannot be created for any of the music commands - # Player creation is a command check for every music command + # If `create_player` fails to create a player and fails + # to raise a `CheckPlayerError`, this will catch it elif ( isinstance(error, app_commands.CheckFailure) and interaction.command.name in music_commands @@ -79,4 +79,4 @@ class Tree(app_commands.CommandTree): await interaction.response.send_message(embed=embed, ephemeral=True) else: - raise error + raise error#