'Song doesn't play on queue
This is error
TypeError: on_wavelink_track_end() missing 1 required positional argument: 'player'
This is wavelink track end code
@bot.event
async def on_wavelink_track_end(ctx: commands.Context, player: wavelink.Player, track: wavelink.Track, reason):
ctx = player.ctx
vc: player = ctx.voice_client
if vc.loop:
return await vc.play(track)
next_song = vc.queue.get()
await vc.play(next_song)
await ctx.send(f"Now playing {next_song.title}")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
