Correct verbiage of comment
This commit is contained in:
parent
98bffe5b01
commit
644f28bbf5
@ -44,8 +44,8 @@ class Tree(app_commands.CommandTree):
|
|||||||
)
|
)
|
||||||
await interaction.response.send_message(embed=embed, ephemeral=True)
|
await interaction.response.send_message(embed=embed, ephemeral=True)
|
||||||
|
|
||||||
# If a player cannot be created for any of the music commands
|
# If `create_player` fails to create a player and fails
|
||||||
# Player creation is a command check for every music command
|
# to raise a `CheckPlayerError`, this will catch it
|
||||||
elif (
|
elif (
|
||||||
isinstance(error, app_commands.CheckFailure)
|
isinstance(error, app_commands.CheckFailure)
|
||||||
and interaction.command.name in music_commands
|
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)
|
await interaction.response.send_message(embed=embed, ephemeral=True)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise error
|
raise error#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user