Is your feature request related to a problem? Please describe.
Reduce code duplication when checking if player is defined and/or playing.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
await interaction.response.defer()
player: Player = wavelink.NodePool.get_node().get_player(interaction.guild)
if player is None:
await interaction.followup.send(ERROR_MESSAGE_BOT_NOT_CONNECTED)
return
if not player.is_playing():
await interaction.followup.send(ERROR_MESSAGE_NOTHING_PLAYING)
return
Is your feature request related to a problem? Please describe. Reduce code duplication when checking if player is defined and/or playing.
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context