Coding Global Background
Coding Global

nextcord Music help

Archived 3 years ago
0 messages
0 members
3 years ago
Open in Discord
T
ToxicLikeMe

My bot does not play any music ```py @commands.command() async def play(self, ctx: commands.Context, *, search: wavelink.YouTubeTrack): if not ctx.voice_client: vc: wavelink.Player = await ctx.author.voice.channel.connect(cls=wavelink.Player) elif getattr(ctx.author.voice, "channel", None): ctx.message.delete() embed = nextcord.Embed(title="Error", color= nextcord.Color.red()) embed.add_field(name="Error ID", value="01", inline=False) embed.add_field(name="Error Name", value="Non VC detected", inline=False) return await ctx.send(embed=embed) else: vc: wavelink.Player = ctx.voice_client await vc.play(search)``` no error