VoiceClient.play()不播放任何音频

时间:2019-06-13 21:48:09

标签: python ffmpeg discord.py-rewrite

我正在尝试在discord.py中制作一个音乐机器人,但是每当我尝试使用VoiceClient.play()播放音频时,它都不会播放任何内容,只是停留在语音通道中。

async def play(ctx):
    for VoiceClient in client.voice_clients:
        if VoiceClient.guild == ctx.guild:
            await VoiceClient.play(discord.FFmpegPCMAudio('song.mp3'))
            embed = discord.Embed(title=f'⬅  {ctx.author.mention},  I am now playing that song.', color=0x51BDEF)
            await ctx.send(embed=embed)

也没有任何错误消息,只是没有播放任何内容

0 个答案:

没有答案
相关问题