Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 JDA 跟踪我的机器人的语音活动。我正在使用 lavaplayer 将音频流式传输到语音通道,并且我希望机器人在一段时间后处于非活动状态或除了机器人之外没有其他人时离开通道。我是编码社区的新手,正在尝试不同的事情。你能帮我解决这个问题吗?
每次有人离开语音频道时,您可以检查频道中是否有任何人,如果是这种情况,则启动计时器或其他人。