Python discord.py问题:如何在discord中检查第一个加入语音聊天的用户

Python discord.py问题:如何在discord中检查第一个加入语音聊天的用户,python,python-3.x,discord.py,Python,Python 3.x,Discord.py,所以我正在制作一个机器人,它就像人们加入特定的VC一样。它将通过首先加入特定vc的用户创建新的语音频道。别介意我的英语,我知道我的英语很烂C 我在试这个 from discord.ext import commands import discord import os bot = commands.Bot(command_prefix = ">") client = discord.Client() @commands.command() async def jo

所以我正在制作一个机器人,它就像人们加入特定的VC一样。它将通过首先加入特定vc的用户创建新的语音频道。别介意我的英语,我知道我的英语很烂C 我在试这个

from discord.ext import commands
import discord 
import os

bot = commands.Bot(command_prefix = ">")
client = discord.Client()

@commands.command()
async def join_voice(self, ctx):
    connected = ctx.author.voice
    if connected:
      await create_voice_channel("I want to add a person who triggered the bot by join specific VC to  set name of new VC to their name.")
client.run(os.getenv('TOKEN'))

我想你要找的是
on\u voice\u state\u update
corroutine功能。我不太确定您想要对传递给函数的数据做什么,但是您可能可以找到您想要的

对于任何其他问题,请尝试检查