I tried to do something like this randomly, based on the usage of "on_member_join" function, but this didn't work. so, how can I make this work?
@client.event
async def on_member_connect(member):
channel = discord.utils.get(member.guild.voice_channels, name="channel-name")
print("blabla")