def play_next_sound(self):
""" Play the next sound in queue. If none, disconnect """
if len(self.soundQueue) != 0:
sound = self.soundQueue[0]
del self.soundQueue[0]
self.currentVoiceClient.play(discord.FFmpegPCMAudio(sound.location), after=self.after_sound_clip)
else:
await self.disconnect()
评论列表
文章目录