aboutsummaryrefslogtreecommitdiff
path: root/code/tree.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-07-10 23:04:57 -0500
committerParker <contact@pkrm.dev>2024-07-10 23:04:57 -0500
commit644f28bbf522a64287eb1452f3206c2e566d4c96 (patch)
tree5da0980e4f15a6bfe0c1b29ddc24c1f24f0e867e /code/tree.py
parent98bffe5b0197a618e5b54df83fcf17ecce65786b (diff)
Correct verbiage of comment
Diffstat (limited to 'code/tree.py')
-rw-r--r--code/tree.py6
1 files 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#