Skip to content

Commit

Permalink
Update a bit the code comments
Browse files Browse the repository at this point in the history
Signed-off-by: DA344 <[email protected]>
  • Loading branch information
DA-344 authored Jan 3, 2024
1 parent 13c58c5 commit 7d56439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/voice/playing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ async def play(ctx, search: str):
vc = await ctx.author.voice.channel.connect(cls=wavelink.Player) # If there isn't, we connect it to the channel

# Now we are going to check if the invoker of the command
# is the same voice channel than the voice client, when defined.
# is in the same voice channel than the voice client, when defined.
# If not, we return an error message.
if ctx.author.voice.channel.id != vc.channel.id:
return await ctx.respond("You must be in the same voice channel as the bot.")

# Now we search for the song. You can optionally
# pass the "source" keyword, from type "wavelink.TrackSource"
# pass the "source" keyword, of type "wavelink.TrackSource"
song = await wavelink.Playable.search(search)

if not song: # In case the song is not found
Expand Down

0 comments on commit 7d56439

Please sign in to comment.