【发布时间】:2021-09-19 16:35:37
【问题描述】:
我尝试用discord.py 制作一个 Discord 机器人。我在跳过命令部分。
我已经完成了播放和队列命令等其他部分。
我尝试使用命令self.vc.stop() 来停止歌曲并跳到下一首,但它不起作用,谁能帮助我?这是我执行的详细跳过命令:
class music_cog(commands.Cog):
# all the stuff over here
@commands.command(aliases=["continue"])
async def skip(self, ctx):
if self.vc != "":
self.vc.stop()
# plays the next song
await self.play_music()
【问题讨论】:
标签: python discord.py bots