我想在我的不和谐机器人上创建“加入以创建”系统,但首先我应该检测成员加入语音频道。我该怎么做?
答案 0 :(得分:0)
您可以使用 on_voice_state_update
事件
@client.event
async def on_voice_state_update(member, before, after):
if not before.channel and after.channel:
print(member, 'joined', after.channel)