这是我的密码:
voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.07
我得到了这个错误:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'play'
这意味着声音没有
你试着连接到频道了吗? 你是在同一个帮会中执行这个命令吗
https://discordpy.readthedocs.io/en/latest/api.html#discord.Guild.voice_channelshttps://discordpy.readthedocs.io/en/latest/api.html#discord.Guild.voice_client
相关问题 更多 >
编程相关推荐